]> git.mxchange.org Git - friendica.git/blobdiff - update.php
added curly braces #3254
[friendica.git] / update.php
index b15f7b099f71903a7af909754c86783250aedd8c..1668df6eb51d46664384a6d477521fcbd7a1aaa4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define('UPDATE_VERSION' , 1215);
+define('UPDATE_VERSION' , 1216);
 
 /**
  *
@@ -148,7 +148,7 @@ function update_1014() {
        if (dbm::is_result($r)) {
                foreach ($r as $rr) {
                        $ph = new Photo($rr['data']);
-                       if($ph->is_valid()) {
+                       if ($ph->is_valid()) {
                                $ph->scaleImage(48);
                                $ph->store($rr['uid'],$rr['contact-id'],$rr['resource-id'],$rr['filename'],$rr['album'],6,(($rr['profile']) ? 1 : 0));
                        }
@@ -310,7 +310,7 @@ function update_1031() {
        $r = q("SELECT `id`, `object` FROM `item` WHERE `object` != '' ");
        if($r && dbm::is_result($r)) {
                foreach ($r as $rr) {
-                       if(strstr($rr['object'],'type=&quot;http')) {
+                       if (strstr($rr['object'],'type=&quot;http')) {
                                q("UPDATE `item` SET `object` = '%s' WHERE `id` = %d",
                                        dbesc(str_replace('type=&quot;http','href=&quot;http',$rr['object'])),
                                        intval($rr['id'])
@@ -1671,7 +1671,7 @@ function update_1190() {
                $plugins = get_config('system','addon');
                $plugins_arr = array();
 
-               if($plugins) {
+               if ($plugins) {
                        $plugins_arr = explode(",",str_replace(" ", "",$plugins));
 
                        $idx = array_search($plugin, $plugins_arr);