From cc894bdcc291624ffd8e23c9501f8d939ed4191d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 23 Nov 2017 14:55:11 +0100 Subject: [PATCH] fix stalled update if jpegphoto is empty string (and not null) --- api/setup/tables_update.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/setup/tables_update.inc.php b/api/setup/tables_update.inc.php index 560c6c3ee2..897c67dc7f 100644 --- a/api/setup/tables_update.inc.php +++ b/api/setup/tables_update.inc.php @@ -256,7 +256,7 @@ function api_upgrade16_9_002() $n = 0; foreach($GLOBALS['egw_setup']->db->query("SELECT contact_id,contact_jpegphoto,contact_pubkey FROM egw_addressbook -WHERE contact_jpegphoto IS NOT NULL OR contact_pubkey IS NOT NULL AND contact_pubkey LIKE '%-----%'", +WHERE contact_jpegphoto != '' OR contact_pubkey IS NOT NULL AND contact_pubkey LIKE '%-----%'", __LINE__, __FILE__, 0, $junk_size, false, Api\Db::FETCH_ASSOC) as $row) { $files = 0;