aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2011-01-18 11:14:28 +0100
committerroot <root@diekershoff.homeunix.net>2011-01-18 11:14:28 +0100
commit13fa27f7578d292d8d722554ce6211e8e0bc91af (patch)
tree2377a23718c3406206f03b65aad2a9f5b1eb8b12 /update.php
parent3323f256c35ceb30a4b2ac1984a2eded672eb33f (diff)
parent028460a5c1de4833bb1dcfaa945c1292952bf923 (diff)
downloadvolse-hubzilla-13fa27f7578d292d8d722554ce6211e8e0bc91af.tar.gz
volse-hubzilla-13fa27f7578d292d8d722554ce6211e8e0bc91af.tar.bz2
volse-hubzilla-13fa27f7578d292d8d722554ce6211e8e0bc91af.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'update.php')
-rw-r--r--update.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/update.php b/update.php
index ae0e35531..7aacffb40 100644
--- a/update.php
+++ b/update.php
@@ -302,3 +302,18 @@ function update_1030() {
}
+function update_1031() {
+ // Repair any bad links that slipped into the item table
+ $r = q("SELECT `id`, `object` FROM `item` WHERE `object` != '' ");
+ if($r && count($r)) {
+ foreach($r as $rr) {
+ if(strstr($rr['object'],'type=&quot;http')) {
+ q("UPDATE `item` SET `object` = '%s' WHERE `id` = %d LIMIT 1",
+ dbesc(str_replace('type=&quot;http','href=&quot;http',$rr['object'])),
+ intval($rr['id'])
+ );
+ }
+ }
+ }
+}
+