Changeset 433 for branches


Ignore:
Timestamp:
Oct 12, 2012, 8:27:30 AM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Možnost mazat položky.
  • Přidáno: Přidávání a změna hodnot položek.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Modular/Modules/System/System.php

    r425 r433  
    118118class ModuleSystem extends Module
    119119{
     120  var $InstalledChecked;
     121       
    120122  function __construct($Database, $System)
    121123  {
     
    216218  function IsInstalled()
    217219  {
    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
    219223WHERE 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);
    222229  }
    223230 
Note: See TracChangeset for help on using the changeset viewer.