Parcourir la source

throw exception when TableAcl instance not exists

Piotr Labudda il y a 10 ans
Parent
commit
a585d61c57
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      SE/se-lib/UserAcl.php

+ 1 - 0
SE/se-lib/UserAcl.php

@@ -186,6 +186,7 @@ class UserAcl {
 
 	public function getTableAcl($tableID) {
 		$tblAcl = TableAcl::getInstance($tableID);
+		if (!$tblAcl) throw new Exception("Brak tabeli nr [{$tableID}]!");
 		$tblAcl->init();
 		return $tblAcl;
 	}