1
0
Fork 0

added spaces + some curly braces + some usage of dbm::is_result()

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-01-26 15:23:30 +01:00 committed by Roland Haeder
commit 0cd241bcbe
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
92 changed files with 1190 additions and 1087 deletions

View file

@ -2,7 +2,7 @@
function share_init(App $a) {
$post_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
if((! $post_id) || (! local_user()))
if ((! $post_id) || (! local_user()))
killme();
$r = q("SELECT item.*, contact.network FROM `item`
@ -12,7 +12,7 @@ function share_init(App $a) {
intval($post_id),
intval(local_user())
);
if(! dbm::is_result($r) || ($r[0]['private'] == 1))
if (! dbm::is_result($r) || ($r[0]['private'] == 1))
killme();
if (strpos($r[0]['body'], "[/share]") !== false) {