converted more to dbm::is_result() + added braces/space

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-20 15:37:27 +01:00
parent 0e58bf6675
commit 51716957b2
13 changed files with 61 additions and 41 deletions

View file

@ -154,7 +154,7 @@ function videos_post(App &$a) {
intval(local_user())
);
//echo "<pre>"; var_dump($i); killme();
if(count($i)) {
if (dbm::is_result($i)) {
q("UPDATE `item` SET `deleted` = 1, `edited` = '%s', `changed` = '%s' WHERE `parent-uri` = '%s' AND `uid` = %d",
dbesc(datetime_convert()),
dbesc(datetime_convert()),