File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -49,24 +49,25 @@ public function showHome()
4949 echo __ ('Please, read the documentation before using that. ' , 'footprints ' );
5050 }
5151
52- function getSccmVersion () {
53- $ PluginSccmSccmdb = new PluginSccmSccmdb ();
54- $ res = $ PluginSccmSccmdb ->connect ();
55- if (!$ res ) {
56- die;
57- }
52+ public function getSccmVersion ()
53+ {
54+ $ PluginSccmSccmdb = new PluginSccmSccmdb ();
55+ $ res = $ PluginSccmSccmdb ->connect ();
56+ if (!$ res ) {
57+ die;
58+ }
5859
59- $ query = "SELECT TOP 1 Version FROM dbo.Site; " ;
60+ $ query = "SELECT TOP 1 Version FROM dbo.Site; " ;
6061
61- $ result = $ PluginSccmSccmdb ->exec_query ($ query );
62+ $ result = $ PluginSccmSccmdb ->exec_query ($ query );
6263
63- $ version = null ;
64- if ($ row = sqlsrv_fetch_array ($ result , SQLSRV_FETCH_ASSOC )) {
65- $ version = Sanitizer::sanitize ($ row ['Version ' ]);
66- }
64+ $ version = null ;
65+ if ($ row = sqlsrv_fetch_array ($ result , SQLSRV_FETCH_ASSOC )) {
66+ $ version = Sanitizer::sanitize ($ row ['Version ' ]);
67+ }
6768
68- return (int )$ version ;
69- }
69+ return (int ) $ version ;
70+ }
7071
7172 public function getDevices ($ where = 0 , $ limit = 99999999 )
7273 {
You can’t perform that action at this time.
0 commit comments