check if id passed to getKeywordCategory() is greater 0

This commit is contained in:
Uwe Steinmann 2021-09-17 18:28:40 +02:00
parent e06cd59f6c
commit 7d7deeb313

View File

@ -2289,7 +2289,7 @@ class SeedDMS_Core_DMS {
} /* }}} */
function getKeywordCategory($id) { /* {{{ */
if (!is_numeric($id))
if (!is_numeric($id) || $id < 1)
return false;
$queryStr = "SELECT * FROM `tblKeywordCategories` WHERE `id` = " . (int) $id;