@@ -139,7 +139,7 @@ public function updateByItem($tags, $itemid, $modid = '', $catid = 0)
139139
140140 if (!empty ($ tags_delete )) {
141141 $ tags_delete = array_map (array ($ this ->db , 'quoteString ' ), $ tags_delete );
142- if ($ tags_id = $ this ->getIds (new Criteria ('tag_term ' , '( ' . implode (', ' , $ tags_delete ) . ') ' , 'IN ' ))) {
142+ if ($ tags_id =& $ this ->getIds (new Criteria ('tag_term ' , '( ' . implode (', ' , $ tags_delete ) . ') ' , 'IN ' ))) {
143143 $ sql = "DELETE FROM {$ this ->table_link }"
144144 . ' WHERE '
145145 . " {$ this ->keyName } IN ( "
@@ -166,7 +166,7 @@ public function updateByItem($tags, $itemid, $modid = '', $catid = 0)
166166 $ tag_link = array ();
167167 $ tag_count = array ();
168168 foreach ($ tags_add as $ tag ) {
169- if ($ tags_id = $ this ->getIds (new Criteria ('tag_term ' , $ tag ))) {
169+ if ($ tags_id =& $ this ->getIds (new Criteria ('tag_term ' , $ tag ))) {
170170 $ tag_id = $ tags_id [0 ];
171171 $ tag_count [] = $ tag_id ;
172172 } else {
@@ -265,11 +265,11 @@ public function update_stats($tag_id, $modid = 0, $catid = 0)
265265 * Get tags with item count
266266 *
267267 * @access public
268- * @param int $limit
269- * @param int $start
270- * @param CriteriaElement|object $criteria {@link Criteria}
271- * @param null $fields
272- * @param boolean $fromStats fetch from tag-stats table
268+ * @param int $limit
269+ * @param int $start
270+ * @param CriteriaElement $criteria {@link Criteria}
271+ * @param null $fields
272+ * @param boolean $fromStats fetch from tag-stats table
273273 * @return array associative array of tags (id, term, count)
274274 */
275275 public function &getByLimit ($ limit = 0 , $ start = 0 , CriteriaElement $ criteria = null , $ fields = null , $ fromStats = true )//&getByLimit($criteria = null, $fromStats = true)
@@ -490,7 +490,7 @@ public function delete(XoopsObject $object, $force = true)
490490 if (!is_object($object) || !$object->getVar($this->keyName)) {
491491 return false;
492492 }
493- */
493+ */
494494 $ queryFunc = empty ($ force ) ? 'query ' : 'queryF ' ;
495495
496496 /*
@@ -539,7 +539,7 @@ public function cleanOrphan($table_link = '', $field_link = '', $field_object =
539539 * @param CriteriaElement $ids
540540 * @return array|bool object IDs or false on failure
541541 */
542- public function &getIds (CriteriaElement $ ids = null ) //getIds(CriteriaElement $ids = null)
542+ public function &getIds (CriteriaElement $ ids = null )
543543 {
544544 return parent ::getIds ($ ids );
545545 }
0 commit comments