us ic_null (because I do what I want)
This commit is contained in:
parent
89ad37727b
commit
5ffa8525a1
3 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ class Action
|
||||||
?callable $function
|
?callable $function
|
||||||
) {
|
) {
|
||||||
// fake action has no behavior
|
// fake action has no behavior
|
||||||
if (null !== $function) {
|
if (!is_null($function)) {
|
||||||
dcCore::app()->addBehavior($behavior, $function);
|
dcCore::app()->addBehavior($behavior, $function);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@ class ActivityReport
|
||||||
*/
|
*/
|
||||||
public function getLogs(ArrayObject $params = null, bool $count_only = false, ?SelectStatement $ext_sql = null): ?dcRecord
|
public function getLogs(ArrayObject $params = null, bool $count_only = false, ?SelectStatement $ext_sql = null): ?dcRecord
|
||||||
{
|
{
|
||||||
if (null === $params) {
|
if (is_null($params)) {
|
||||||
$params = new ArrayObject();
|
$params = new ArrayObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -598,7 +598,7 @@ class ActivityReport
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$logs = $this->getLogs($params);
|
$logs = $this->getLogs($params);
|
||||||
if ($logs !== null && !$logs->isEmpty()) {
|
if (!is_null($logs) && !$logs->isEmpty()) {
|
||||||
// Datas to readable text
|
// Datas to readable text
|
||||||
$content = $this->parseLogs($logs);
|
$content = $this->parseLogs($logs);
|
||||||
if (!empty($content)) {
|
if (!empty($content)) {
|
||||||
|
|
|
@ -51,7 +51,7 @@ class Settings
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
if (dcCore::app()->blog === null) {
|
if (is_null(dcCore::app()->blog)) {
|
||||||
throw new Exception('Blog is not set');
|
throw new Exception('Blog is not set');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue