PHP 8.1 fixes; fixed adding users
This commit is contained in:
@@ -100,7 +100,7 @@ class OrderController extends mfBaseController {
|
||||
return true;
|
||||
}*/
|
||||
|
||||
if($filter['network_id']) {
|
||||
if(array_key_exists("network_id", $filter) && $filter['network_id']) {
|
||||
//$this->layout()->set("orders", OrderModel::search(['network_id' => $filter['network_id']]));
|
||||
$my_networks = [];
|
||||
$my_networks[] = new Network($filter['network_id']);
|
||||
@@ -231,10 +231,10 @@ class OrderController extends mfBaseController {
|
||||
$has_bras = false;
|
||||
$has_voice = false;
|
||||
foreach($order->products as $lop) {
|
||||
if(array_key_exists("bras_type", $lop->product->attributes) && $lop->product->attributes['bras_type']) {
|
||||
if(is_array($lop->product->attributes) && array_key_exists("bras_type", $lop->product->attributes) && $lop->product->attributes['bras_type']) {
|
||||
$has_bras = true;
|
||||
}
|
||||
if(array_key_exists("voip_chan", $lop->product->attributes) && $lop->product->attributes['voip_chan']) {
|
||||
if(is_array($lop->product->attributes) && array_key_exists("voip_chan", $lop->product->attributes) && $lop->product->attributes['voip_chan']) {
|
||||
$has_voice = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ class OrderModel {
|
||||
return $items;
|
||||
}
|
||||
|
||||
private function getSqlFilter($filter) {
|
||||
private static function getSqlFilter($filter) {
|
||||
$where = "1=1 ";
|
||||
|
||||
//var_dump($filter);exit;
|
||||
|
||||
Reference in New Issue
Block a user