From: Roland Haeder Date: Tue, 20 Dec 2016 20:15:53 +0000 (+0100) Subject: Continued with coding convention: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=45dd1ccc7bcd8cf9d9218b373042df26dc8a2df4;p=friendica.git Continued with coding convention: - added curly braces around conditional code blocks - added space between if/foreach/... and brace - rewrote a code block so if dbm::is_result() fails it will abort, else the id is fetched from INSERT statement - made some SQL keywords upper-cased and added back-ticks to columns/table names Signed-off-by: Roland Haeder --- diff --git a/mod/item.php b/mod/item.php index 0746f0ada8..ee532bd99b 100644 --- a/mod/item.php +++ b/mod/item.php @@ -454,7 +454,7 @@ function item_post(App &$a) { $objecttype = ACTIVITY_OBJ_IMAGE; foreach ($images as $image) { - if (! stristr($image,App::get_baseurl() . '/photo/')) + if (! stristr($image,App::get_baseurl() . '/photo/')) { continue; } $image_uri = substr($image,strrpos($image,'/') + 1);