Hi,
recently I updated my Zenphoto 1.2.1 Gallery to 1.2.2.
During the Updateprocess I get a SQL-Error:
....
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /www/html/zenphoto/zp-core/functions.php on line 469
Tabellenaktualisierung abgeschlossen!
Zenphoto Error
MySQL-Abfrage ( SELECT folder, sort_order, title, show, dynamic, search_params FROM albums WHERE parentid= ORDER BY sort_order ) fehlgeschlagen. Fehler: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY sort_order' at line 1
Have someone a Idea what is wrong?
Thanks
Noppes
It would seem that ther is a problem with an album's parentid. Normally it should be NULL or the ID of the parent album. Perhaps it is not stored as NULL.
Try to change line 451 of functions.php from if (is_null($parentalbum)) { to if (empty($parentalbum)) {
But of course, this is not new code, so I do not know why it would start to fail just on 1.2.2