projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f49167d
)
DataObjects/Events.php
author
Alan Knowles
<alan@roojs.com>
Mon, 10 Aug 2015 06:39:45 +0000
(14:39 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 10 Aug 2015 06:39:45 +0000
(14:39 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
94fc9d2
..
e9ebc1e
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-452,7
+452,7
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
self::$deleted[] = $del;
return true;
}
- static $extra_data =
array()
;
+ static $extra_data =
false
;
static function writeEventLogExtra($data) {
self::$extra_data = $data;
@@
-518,9
+518,10
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
if (!empty(self::$deleted)) {
$out['DELETED_DATAOBJECTS'] = self::$deleted;
}
- if (
!empty($extra_data)
) {
+ if (
$extra_data !== false
) {
$out['EXTRA'] = $extra_data;
}
+ if ()
file_put_contents($file, json_encode($out));