From: Alan Knowles Date: Thu, 11 Jun 2020 01:55:45 +0000 (+0800) Subject: Fix #6312 - php7 fixes X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=b645e610393300d301015f6adcfe78001a43389c Fix #6312 - php7 fixes --- diff --git a/DataObjects/Core_project.php b/DataObjects/Core_project.php index d6b6bde2..92c202eb 100644 --- a/DataObjects/Core_project.php +++ b/DataObjects/Core_project.php @@ -175,7 +175,7 @@ class Pman_Core_DataObjects_Core_project extends DB_DataObject } - function onInsert() + function onInsert($request,$roo) { $oo = clone($this); if (empty($this->code)) { @@ -186,7 +186,7 @@ class Pman_Core_DataObjects_Core_project extends DB_DataObject } } - function onUpdate($old) + function onUpdate($old, $request, $roo) { $oo = clone($this); if (empty($this->code)) { diff --git a/I18n.php b/I18n.php index 8367964c..12ed22dd 100644 --- a/I18n.php +++ b/I18n.php @@ -231,7 +231,7 @@ class Pman_Core_I18n extends Pman if (empty($k)) { return '??'; } - $lang = !$au || empty($au->lang ) ? 'en' : is_string($au) ? $au : $au->lang; + $lang = !$au || empty($au->lang ) ? 'en' : (is_string($au) ? $au : $au->lang); // does it need caching?