Changeset 433 for branches/Modular
- Timestamp:
- Oct 12, 2012, 8:27:30 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Modules/System/System.php
r425 r433 118 118 class ModuleSystem extends Module 119 119 { 120 var $InstalledChecked; 121 120 122 function __construct($Database, $System) 121 123 { … … 216 218 function IsInstalled() 217 219 { 218 $DbResult = $this->Database->query('SELECT table_name FROM information_schema.tables 220 if($this->InstalledChecked == false) 221 { 222 $DbResult = $this->Database->query('SELECT table_name FROM information_schema.tables 219 223 WHERE table_schema = "'.$this->Database->Database.'" AND table_name = "SystemVersion";'); 220 if($DbResult->num_rows > 0) return(true); 221 else return(false); 224 if($DbResult->num_rows > 0) $this->Installed = true; 225 else $this->Installed = false; 226 $this->InstalledChecked = true; 227 } 228 return($this->Installed); 222 229 } 223 230
Note:
See TracChangeset
for help on using the changeset viewer.