Merge pull request #665 from tobiasd/foreach_arg
invalid arguments for a foreach loop found
This commit is contained in:
commit
44f4b9a29f
|
@ -106,8 +106,10 @@ function create_tags_from_item($itemid) {
|
||||||
function create_tags_from_itemuri($itemuri, $uid) {
|
function create_tags_from_itemuri($itemuri, $uid) {
|
||||||
$messages = q("SELECT `id` FROM `item` WHERE uri ='%s' AND uid=%d", dbesc($itemuri), intval($uid));
|
$messages = q("SELECT `id` FROM `item` WHERE uri ='%s' AND uid=%d", dbesc($itemuri), intval($uid));
|
||||||
|
|
||||||
foreach ($messages as $message)
|
if(count($messages)) {
|
||||||
create_tags_from_item($message["id"]);
|
foreach ($messages as $message)
|
||||||
|
create_tags_from_item($message["id"]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_items() {
|
function update_items() {
|
||||||
|
|
Loading…
Reference in a new issue