You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
if I have no records in the order table, when I execute {Controller}->model_report_sale->getTotalSales()
an exception get thrown : "Undefined index: total".
I noticed that the method getTotalSales returns $query->row['total'].
Wouldn't it be better to return $query->row and test its value in the Controller ?
The text was updated successfully, but these errors were encountered:
Hi everyone,
if I have no records in the order table, when I execute {Controller}->model_report_sale->getTotalSales()
an exception get thrown : "Undefined index: total".
I noticed that the method getTotalSales returns $query->row['total'].
Wouldn't it be better to return $query->row and test its value in the Controller ?
The text was updated successfully, but these errors were encountered: