From ec78cd63b9c3b755ceb0e920d38a7d65fdb69767 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Mon, 1 Mar 2010 17:32:38 +0000 Subject: [PATCH] Fix a bug that prevents the session from loading in rare cases. --- application/modules/requests/models/RequestModel.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/modules/requests/models/RequestModel.php b/application/modules/requests/models/RequestModel.php index e26d93aa..dd92621b 100644 --- a/application/modules/requests/models/RequestModel.php +++ b/application/modules/requests/models/RequestModel.php @@ -771,6 +771,9 @@ class Requests_RequestModel extends Unl_Model public function __wakeup() { + if (!is_array($this->_data['files'])) { + $this->_data['files'] = array(); + } foreach ($this->_data['files'] as &$file) { if ($file['data']) { continue; -- GitLab