aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1241.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Update/_1241.php')
-rw-r--r--Zotlabs/Update/_1241.php19
1 files changed, 14 insertions, 5 deletions
diff --git a/Zotlabs/Update/_1241.php b/Zotlabs/Update/_1241.php
index 5f806b7d1..1b2024aad 100644
--- a/Zotlabs/Update/_1241.php
+++ b/Zotlabs/Update/_1241.php
@@ -2,14 +2,23 @@
namespace Zotlabs\Update;
-require_once('include/account.php');
-
class _1241 {
function run() {
+
+ q("START TRANSACTION");
- return verify_register_scheme();
+ // remove duplicated profile photos
+ $r = dbq("DELETE FROM photo WHERE imgscale IN (4, 5, 6) AND photo_usage = 0");
+
+ if($r) {
+ q("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
- }
-
}