From bd63fddbf44312f7c388711b6f7b990245654283 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 23 Jul 2012 10:34:01 +0200 Subject: fix broken properties in the database --- apps/files/appinfo/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files/appinfo') diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php index 88db08e7e23..5514aed197f 100644 --- a/apps/files/appinfo/update.php +++ b/apps/files/appinfo/update.php @@ -1,13 +1,13 @@ execute(); while( $row = $result->fetchRow()){ $query = OC_DB::prepare( 'UPDATE *PREFIX*properties SET propertyname = ? WHERE userid = ? AND propertypath = ?' ); - $query->execute( array( preg_replace("/{.*}/", "", $row["propertyname"]),$row["userid"], $row["propertypath"] )); + $query->execute( array( preg_replace("/^{.*}/", "", $row["propertyname"]),$row["userid"], $row["propertypath"] )); } } -- cgit v1.2.3