diff --git a/hwe/j_msg_get_recent.php b/hwe/j_msg_get_recent.php index 04d0faf8..b98c5592 100644 --- a/hwe/j_msg_get_recent.php +++ b/hwe/j_msg_get_recent.php @@ -14,7 +14,7 @@ $now = new \DateTime(); $delayTime = false; if(count($lastMsgGet) >= 10){ try{ - if($lastMsgGet[0] !== 'string'){ + if(!is_string($lastMsgGet[0])){ throw new \Exception('Why not string?'); } $first = new \DateTime($lastMsgGet[0]);