1
0

Optimize to avoid duplicate fetch

This commit is contained in:
Garvin Hicking
2007-02-27 12:14:20 +00:00
parent 5911f9e54e
commit cb416979a3

View File

@@ -598,6 +598,10 @@ class serendipity_event_entryproperties extends serendipity_event
break;
case 'frontend_entryproperties':
if (is_array($eventData[0]['properties'])) {
// Skip fetching entryproperties again, it has already been done in functions_entries::fetchEntry().
return true;
}
$and = $this->returnQueryCondition($is_cache);
$q = "SELECT entryid, property, value FROM {$serendipity['dbPrefix']}entryproperties WHERE entryid IN (" . implode(', ', array_keys($addData)) . ") $and";