1
0

PHP 7.2 compat: session_cache, each (#564, #556)

This commit is contained in:
onli
2018-09-13 14:22:01 +02:00
parent 368dca4379
commit b664435ef6
3 changed files with 2 additions and 6 deletions

View File

@ -19,7 +19,7 @@ class serendipity_event_entryproperties extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_ENTRYPROPERTIES_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.41');
$propbag->add('version', '1.41.1');
$propbag->add('requirements', array(
'serendipity' => '1.6',
'smarty' => '2.6.27',
@ -488,9 +488,7 @@ class serendipity_event_entryproperties extends serendipity_event
$plugins = serendipity_plugin_api::get_event_plugins();
if (is_array($plugins)) {
// foreach() operates on copies of values, but we want to operate on references, so we use while()
@reset($plugins);
while(list($plugin, $plugin_data) = each($plugins)) {
foreach($plugins as $plugin => $plugin_data) {
if (!is_array($plugin_data['p']->markup_elements)) {
continue;
}