]> git.mxchange.org Git - friendica.git/commitdiff
Continued with coding convention:
authorRoland Haeder <roland@mxchange.org>
Tue, 20 Dec 2016 20:15:53 +0000 (21:15 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 23 Dec 2016 18:51:08 +0000 (19:51 +0100)
- 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 <roland@mxchange.org>
mod/item.php

index 0746f0ada8c8a275e79178e23040004198c78a41..ee532bd99b53e8db0f5d0e75e7bf6df98df5f6b0 100644 (file)
@@ -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);