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 <roland@mxchange.org>
pull/3043/head
Roland Haeder 2016-12-20 21:15:53 +01:00
rodzic c1b76e889e
commit 45dd1ccc7b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B72F8185C6C7BD78
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);