fix stalled update if jpegphoto is empty string (and not null)

This commit is contained in:
Ralf Becker 2017-11-23 14:55:11 +01:00
parent a36cc7b261
commit e4f51b5692

View File

@ -256,7 +256,7 @@ function api_upgrade16_9_002()
$n = 0; $n = 0;
foreach($GLOBALS['egw_setup']->db->query("SELECT contact_id,contact_jpegphoto,contact_pubkey foreach($GLOBALS['egw_setup']->db->query("SELECT contact_id,contact_jpegphoto,contact_pubkey
FROM egw_addressbook 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) __LINE__, __FILE__, 0, $junk_size, false, Api\Db::FETCH_ASSOC) as $row)
{ {
$files = 0; $files = 0;