From: garvinhicking Date: Fri, 29 Jul 2005 09:56:16 +0000 (+0000) Subject: Fix typo (thanks to Eclipse's "variable not initialized" warning :) X-Git-Tag: 0.9~270 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b21f45b587fcc75047fd9a8e31abd16568c7fc30;p=s9y.git Fix typo (thanks to Eclipse's "variable not initialized" warning :) --- diff --git a/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php b/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php index 1f78013..257863e 100644 --- a/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php +++ b/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php @@ -198,7 +198,7 @@ class serendipity_event_entryproperties extends serendipity_event $q = "DELETE FROM {$serendipity['dbPrefix']}entryproperties WHERE entryid = " . (int)$eventData['id'] . " AND property = '" . serendipity_db_escape_string($prop_key) . "'"; serendipity_db_query($q); - if (!isset($property[$prop_key]) && !empty($prop_val) || $property[$propkey] != $prop_val && !empty($prop_val)) { + if (!isset($property[$prop_key]) && !empty($prop_val) || $property[$prop_key] != $prop_val && !empty($prop_val)) { $q = "INSERT INTO {$serendipity['dbPrefix']}entryproperties (entryid, property, value) VALUES (" . (int)$eventData['id'] . ", '" . serendipity_db_escape_string($prop_key) . "', '" . serendipity_db_escape_string($prop_val) . "')"; serendipity_db_query($q); }