]> git.mjollnir.org Git - s9y.git/commitdiff
Fix typo (thanks to Eclipse's "variable not initialized" warning :)
authorgarvinhicking <garvinhicking>
Fri, 29 Jul 2005 09:56:16 +0000 (09:56 +0000)
committergarvinhicking <garvinhicking>
Fri, 29 Jul 2005 09:56:16 +0000 (09:56 +0000)
plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php

index 1f78013d33c1f8aafb820518b32dfaf251da60ab..257863e4dbcd5d45500c574d3a9e0d8467ea47ef 100644 (file)
@@ -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);
             }