diff options
author | friendica <info@friendica.com> | 2013-04-25 01:55:35 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-04-25 01:55:35 -0700 |
commit | d3b5e678908864d889b916ad2f976c1af16ca360 (patch) | |
tree | a5992a78ff9d9683da25f8fbdf895ecd5fc0a20d /mod/starred.php | |
parent | 9d564913f6ea913a39fe2e4937dc4703452c769d (diff) | |
download | volse-hubzilla-d3b5e678908864d889b916ad2f976c1af16ca360.tar.gz volse-hubzilla-d3b5e678908864d889b916ad2f976c1af16ca360.tar.bz2 volse-hubzilla-d3b5e678908864d889b916ad2f976c1af16ca360.zip |
odds and ends in prepearation for photo abstraction, plus red-to-friendica addon
Diffstat (limited to 'mod/starred.php')
-rw-r--r-- | mod/starred.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mod/starred.php b/mod/starred.php index 530c5c7e0..ca7621b0f 100644 --- a/mod/starred.php +++ b/mod/starred.php @@ -19,13 +19,7 @@ function starred_init(&$a) { if(! count($r)) killme(); - $item_flags = $r[0]['item_flags']; - - if($item_flags & ITEM_STARRED) - $item_flags -= ITEM_STARRED; - else - $item_flags += ITEM_STARRED; - + $item_flags = ( $r[0]['item_flags'] ^ ITEM_STARRED ); $r = q("UPDATE item SET item_flags = %d WHERE uid = %d and id = %d LIMIT 1", intval($item_flags), |