- getDocumentCategoriesByName() returns false if category was found

This commit is contained in:
steinm 2011-07-22 20:48:31 +00:00
parent 8b55a56fe2
commit 336f23293d

View File

@ -935,7 +935,7 @@ class LetoDMS_Core_DMS {
$queryStr = "SELECT * FROM tblCategory where name='".$name."'"; $queryStr = "SELECT * FROM tblCategory where name='".$name."'";
$resArr = $this->db->getResultArray($queryStr); $resArr = $this->db->getResultArray($queryStr);
if (is_bool($resArr) && !$resArr) if (!$resArr)
return false; return false;
$row = $resArr[0]; $row = $resArr[0];