mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
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>
This commit is contained in:
parent
6c0c9d542a
commit
52f14ffa5f
31 changed files with 173 additions and 127 deletions
|
@ -160,7 +160,7 @@ function item_redir_and_replace_images($body, $images, $cid) {
|
|||
$newbody = $newbody . $origbody;
|
||||
|
||||
$cnt = 0;
|
||||
foreach($images as $image) {
|
||||
foreach ($images as $image) {
|
||||
// We're depending on the property of 'foreach' (specified on the PHP website) that
|
||||
// it loops over the array starting from the first element and going sequentially
|
||||
// to the last element
|
||||
|
@ -231,7 +231,7 @@ function message_content(&$a) {
|
|||
intval($a->argv[2]),
|
||||
intval(local_user())
|
||||
);
|
||||
if($r) {
|
||||
if ($r) {
|
||||
info( t('Message deleted.') . EOL );
|
||||
}
|
||||
//goaway(App::get_baseurl(true) . '/message' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue