diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-10-31 20:06:39 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-10-31 20:06:39 +0100 |
commit | 5a738380f6a9b5b254890830ad7ee9517eee19b3 (patch) | |
tree | 6e9197e34fa6201a41d66f36dc44faeb282838b0 /lib/vcategories.php | |
parent | b434c20c18a389521bb0a30fa7c0c025bb6dd50c (diff) | |
download | nextcloud-server-5a738380f6a9b5b254890830ad7ee9517eee19b3.tar.gz nextcloud-server-5a738380f6a9b5b254890830ad7ee9517eee19b3.zip |
Cast object ids to integers.
Diffstat (limited to 'lib/vcategories.php')
-rw-r--r-- | lib/vcategories.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vcategories.php b/lib/vcategories.php index 116c1d1cd95..ee7c7c8ab1b 100644 --- a/lib/vcategories.php +++ b/lib/vcategories.php @@ -197,7 +197,7 @@ class OC_VCategories { if(!is_null($result)) { while( $row = $result->fetchRow()) { - $ids[] = $row['objid']; + $ids[] = (int)$row['objid']; } } //OCP\Util::writeLog('core', __METHOD__.', count: ' . count($items), OCP\Util::DEBUG); @@ -565,7 +565,7 @@ class OC_VCategories { * @param int|string $category The id or name of the category * @param string $type The type of object (event/contact/task/journal). * Defaults to the type set in the instance - * @returns boolean + * @returns boolean Returns false on database error. */ public function addToCategory($objid, $category, $type = null) { $type = is_null($type) ? $this->type : $type; |