Bug in package.module.nextgen_data.php – Illegal string offset ‘saved’
-
PHP Warning: Illegal string offset ‘saved’ in wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php on line 2607
On line 2607, if $meta is not an array, you cannot do $meta[‘saved’] = FALSE;
function get_saved_meta($object = false)
{
$meta = $this->image->meta_data;
if (!isset($meta[‘saved’])) {
$meta[‘saved’] = FALSE;
}
//check if we already import the meta data to the database
if (!is_array($meta) || $meta[‘saved’] != true) {
return false;
}I resolved by adding the following code after the start of the function.
if (!is_array($meta)) {
return false;
}
- The topic ‘Bug in package.module.nextgen_data.php – Illegal string offset ‘saved’’ is closed to new replies.