I am getting a Fatal error when trying to go to a page
Fatal error: Can't use function return value in write context in /home/site/public_html/welcome/oc/classes/controller/panel/order.php on line 49
I looked into the code and found this
//filter date
if (!empty(Core::request('from_date')) AND (!empty(Core::request('to_date')))
{
//Getting the dates range
$from_date = Core::request('from_date',strtotime('-1 month'));
$to_date = Core::request('to_date',time());
$orders = $orders->where('pay_date','between',array($from_date,$to_date));
}
can you tell me if there is something wrong with this code? thanks
When i remove the page the page works so i think it have something to do with the code or maybe it can't get the information from the database