Merge pull request #101 from th-h/thh-metadesc-fix
metadesc: Rellay fix INSERT/UPDATE/DELETE logic.
This commit is contained in:
commit
a21df3be43
2 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
0.15.4:
|
||||
-------
|
||||
0.15.4 & 0.15.5:
|
||||
----------------
|
||||
* Fix logic for INSERT/UPDATE/DELETE of properties.
|
||||
|
||||
0.15.3:
|
||||
|
|
|
@ -25,7 +25,7 @@ class serendipity_event_metadesc extends serendipity_event {
|
|||
$propbag->add('description', PLUGIN_METADESC_DESC);
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('author', 'Garvin Hicking, Judebert, Don Chambers');
|
||||
$propbag->add('version', '0.15.4');
|
||||
$propbag->add('version', '0.15.5');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '0.8',
|
||||
'php' => '4.1.0'
|
||||
|
@ -246,9 +246,10 @@ class serendipity_event_metadesc extends serendipity_event {
|
|||
$q = "DELETE FROM {$serendipity['dbPrefix']}entryproperties WHERE entryid = " . (int)$eventData['id'] . " AND property = '" . serendipity_db_escape_string($prop_key) . "'";
|
||||
} else {
|
||||
// nothing to do
|
||||
$q = '';
|
||||
}
|
||||
|
||||
serendipity_db_query($q);
|
||||
if (!empty($q)) serendipity_db_query($q);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue