Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 6c35bad

Browse files
committed
Some compatibility for coming Zenphoto 1.6
1 parent cc016f4 commit 6c35bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

featured_image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static function saveFeaturedImageSelection($obj) {
219219
if ($query) {
220220
$query = $_zp_db->query("UPDATE " . $_zp_db->prefix('plugin_storage') . " SET `data` = " . $_zp_db->quote($data) . " WHERE `type` = " . $_zp_db->quote($type) . " AND `aux` = " . $_zp_db->quote($itemid));
221221
} else {
222-
$query = $_zp_db->query("INSERT INTO " . $_zp_db->prefix('plugin_storage') . " (`type`,`data`,`aux`) VALUES (" . $_zp_db->quote($type) . "," . db_quote($data) . "," . $_zp_db->quote($itemid) . ")");
222+
$query = $_zp_db->query("INSERT INTO " . $_zp_db->prefix('plugin_storage') . " (`type`,`data`,`aux`) VALUES (" . $_zp_db->quote($type) . "," . $_zp_db->quote($data) . "," . $_zp_db->quote($itemid) . ")");
223223
}
224224
if (!$query) {
225225
$message .= '<p class="errorbox">' . sprintf(gettext('Query failure: %s'), $_zp_db->getError()) . '</p>';

0 commit comments

Comments
 (0)