]> git.mxchange.org Git - friendica.git/commitdiff
even more added
authorRoland Häder <roland@mxchange.org>
Tue, 24 Jan 2017 16:57:45 +0000 (17:57 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 18 Mar 2017 23:40:21 +0000 (00:40 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
update.php

index 8f581559d9c199c97189281849084ac0d6000f5f..61410e89e80f1c0d9a373d82dfa87710060127c3 100644 (file)
@@ -157,14 +157,15 @@ function update_1014() {
        $r = q("SELECT * FROM `contact` WHERE 1");
        if (dbm::is_result($r)) {
                foreach ($r as $rr) {
-                       if(stristr($rr['thumb'],'avatar'))
+                       if (stristr($rr['thumb'],'avatar')) {
                                q("UPDATE `contact` SET `micro` = '%s' WHERE `id` = %d",
                                        dbesc(str_replace('avatar','micro',$rr['thumb'])),
                                        intval($rr['id']));
-                       else
+                       } else {
                                q("UPDATE `contact` SET `micro` = '%s' WHERE `id` = %d",
                                        dbesc(str_replace('5.jpg','6.jpg',$rr['thumb'])),
                                        intval($rr['id']));
+                       }
                }
        }
 }
@@ -595,10 +596,11 @@ function update_1074() {
        q("ALTER TABLE `user` ADD `hidewall` TINYINT( 1) NOT NULL DEFAULT '0' AFTER `blockwall` ");
        $r = q("SELECT `uid` FROM `profile` WHERE `is-default` = 1 AND `hidewall` = 1");
        if (dbm::is_result($r)) {
-               foreach ($r as $rr)
+               foreach ($r as $rr) {
                        q("UPDATE `user` SET `hidewall` = 1 WHERE `uid` = %d",
                                intval($rr['uid'])
                        );
+               }
        }
        q("ALTER TABLE `profile` DROP `hidewall`");
 }
@@ -1782,19 +1784,22 @@ function update_1190() {
                        $key = $rr['k'];
                        $value = $rr['v'];
 
-                       if ($key === 'randomise')
+                       if ($key === 'randomise') {
                                del_pconfig($uid,$family,$key);
+                       }
 
                        if ($key === 'show_on_profile') {
-                               if ($value)
+                               if ($value) {
                                        set_pconfig($uid,feature,forumlist_profile,$value);
+                               }
 
                                del_pconfig($uid,$family,$key);
                        }
 
                        if ($key === 'show_on_network') {
-                               if ($value)
+                               if ($value) {
                                        set_pconfig($uid,feature,forumlist_widget,$value);
+                               }
 
                                del_pconfig($uid,$family,$key);
                        }