added spaces + some curly braces + some usage of dbm::is_result()

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Haeder 2017-04-04 19:47:45 +02:00 committed by Roland Häder
parent cdff732044
commit 299c0122f6
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
8 changed files with 112 additions and 102 deletions

View file

@ -33,7 +33,7 @@ function create_files_from_item($itemid) {
function create_files_from_itemuri($itemuri, $uid) {
$messages = q("SELECT `id` FROM `item` WHERE uri ='%s' AND uid=%d", dbesc($itemuri), intval($uid));
if(count($messages)) {
if (count($messages)) {
foreach ($messages as $message)
create_files_from_item($message["id"]);
}