Changeset 837 for trunk/Modules/IS/IS.php
- Timestamp:
- Sep 17, 2016, 7:04:12 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r828 r837 155 155 { 156 156 $Output = ''; 157 if(!array_key_exists($Table, $this->System->FormManager->Classes)) 158 return($this->SystemMessage('Chyba', 'Tabulka '.$Table.' nenalezena')); 157 159 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) 158 160 return($this->SystemMessage('Oprávnění', 'Nemáte oprávnění')); … … 223 225 { 224 226 $Output = ''; 227 if(!array_key_exists($Table, $this->System->FormManager->Classes)) 228 return($this->SystemMessage('Chyba', 'Tabulka '.$Table.' nenalezena')); 229 $FormClass = $this->System->FormManager->Classes[$Table]; 225 230 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) 226 231 return('Nemáte oprávnění'); … … 259 264 { 260 265 $Output = ''; 266 if(!array_key_exists($Table, $this->System->FormManager->Classes)) 267 return($this->SystemMessage('Chyba', 'Tabulka '.$Table.' nenalezena')); 261 268 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) 262 269 return('Nemáte oprávnění'); … … 354 361 function ShowView($Table, $Id, $WithoutActions = false) 355 362 { 356 if($Table != '') $FormClass = $this->System->FormManager->Classes[$Table]; 357 else return($this->SystemMessage('Chyba', 'Tabulka nenalezena')); 363 if(!array_key_exists($Table, $this->System->FormManager->Classes)) 364 return($this->SystemMessage('Chyba', 'Tabulka '.$Table.' nenalezena')); 365 $FormClass = $this->System->FormManager->Classes[$Table]; 358 366 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read')) 359 367 return('Nemáte oprávnění'); … … 412 420 function ShowTable($Table, $Filter = '', $Title = '', $RowActions = array(), $ExcludeColumn = '') 413 421 { 414 if($Table != '') $FormClass = $this->System->FormManager->Classes[$Table]; 415 else return($this->SystemMessage('Chyba', 'Tabulka nenalezena')); 422 if(!array_key_exists($Table, $this->System->FormManager->Classes)) 423 return($this->SystemMessage('Chyba', 'Tabulka '.$Table.' nenalezena')); 424 $FormClass = $this->System->FormManager->Classes[$Table]; 416 425 417 426 if(array_key_exists('SQL', $FormClass)) … … 642 651 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read')) 643 652 return('Nemáte oprávnění'); 653 if(!array_key_exists($Table, $this->System->FormManager->Classes)) 654 return($this->SystemMessage('Chyba', 'Tabulka '.$Table.' nenalezena')); 644 655 $FormClass = $this->System->FormManager->Classes[$Table]; 645 656 if(array_key_exists('BaseTable', $FormClass)) $TableModify = $FormClass['BaseTable'];
Note:
See TracChangeset
for help on using the changeset viewer.