Correctly represent boolean values in serialized data

tags/0.1.9
Daniel Berteaud 11 years ago
parent 29b3215d65
commit 80627c8ce4
  1. 9
      root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All

@ -34,9 +34,14 @@ $data->{'core.notifications'} = {
'core_driver' => 'core' 'core_driver' => 'core'
} }
}, },
'USER_EVENTS' => '1' 'USER_EVENTS' => '__true__'
}; };
$OUT = serialize($data); $data = serialize($data);
# PHP::Serialization has now way to
# represent a boolean, so lets replace __true__
# manually
$data =~ s/s:8:"__true__";/b:1;/g;
$OUT = $data;
} }

Loading…
Cancel
Save