Check when importing a process if the data is valid

This commit is contained in:
Alexandre Rosenfeld
2011-02-09 19:53:47 +00:00
parent 7e2d26bfc9
commit fc057e5a68

View File

@@ -2397,6 +2397,8 @@ class Processes {
if ($contents != '') {
$oData = unserialize ($contents);
if ($oData === false)
throw new Exception("Process file is not valid");
foreach($oData->dynaforms as $key => $value)
{