From b2488042c74678603e96197a7ff4c844d1f56b3f Mon Sep 17 00:00:00 2001 From: Simon Ball Date: Tue, 19 Apr 2016 15:52:51 +0800 Subject: [PATCH] When Log is NULL, will fail to construct --- class/serialisation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/serialisation.php b/class/serialisation.php index c5fc7a4..060fd7b 100644 --- a/class/serialisation.php +++ b/class/serialisation.php @@ -16,7 +16,7 @@ class CS_REST_BaseSerialiser { var $_log; - function __construct($log) { + function __construct($log = null) { $this->_log = $log; }