diff --git a/module/custom/control.php b/module/custom/control.php index 851efdc7f6..2c94c5fc0b 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -141,7 +141,7 @@ class custom extends control foreach($data as $key => $value) { if($key == 'needReview') continue; - if(strpos($key, 'Not') and $data->needReview == 0) $data->$key = ''; + if(strpos($key, 'Not') and $data->needReview == 0) $data->$key = ''; if(!strpos($key, 'Not') and $data->needReview == 1) $data->$key = ''; } diff --git a/module/story/model.php b/module/story/model.php index aa6929e81c..07450e8bfe 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -4381,7 +4381,7 @@ class storyModel extends model $forceUsers .= "," . implode(',', array_keys($users)); } - $forceReview = $this->config->story->needReview == 0 ? strpos(",{$forceUsers},", ",{$this->app->user->account},") : !strpos(",{$forceUsers},", ",{$this->app->user->account},"); + $forceReview = $this->config->story->needReview == 0 ? strpos(",{$forceUsers},", ",{$this->app->user->account},") !== false : strpos(",{$forceUsers},", ",{$this->app->user->account},") === false; return $forceReview; }