a.binder %!s(int64=8) %!d(string=hai) anos
pai
achega
b0a8af7dfc
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      SE/superedit-BUDGET_ANALYTICS.php

+ 4 - 2
SE/superedit-BUDGET_ANALYTICS.php

@@ -348,12 +348,13 @@ jQuery(document).ready(function () {
 			)
 			group by `t1`.`ID_PROJECT`, `t1`.`MONTH`
 		";
+		$db = DB::getDB();
 		foreach($sql as $ind=>$sql_) {
 				
 				
 					DEBUG_S(-3,'wykonuje zapytanie sql dla '.$ind,$sql_,__FILE__,__FUNCTION__,__LINE__);
 					if(!empty($DB)) {
-						$DB->query($sql_) or die('Problem z zapytaniem '.mysql_error());
+						$db->query($sql_) or die('Problem z zapytaniem '.mysql_error());
 					} else {
 						DB::query($sql_) or die('Problem z zapytaniem '.mysql_error());
 					}
@@ -587,12 +588,13 @@ jQuery(document).ready(function () {
 						LEFT JOIN IN7_MK_BAZA_DYSTRYBUCJI AS t2 ON(t1.ID=t2.ID);
 			END
 		";
+		$db = DB::getDB();
 		foreach($sqlList as $ind=>$sql_) {
 				
 				
 					DEBUG_S(-3,'wykonuje zapytanie sql dla '.$ind,$sql_,__FILE__,__FUNCTION__,__LINE__);
 					if(!empty($DB)) {
-						$DB->query($sql_) or die('Problem z zapytaniem '.mysql_error());
+						$db->query($sql_) or die('Problem z zapytaniem '.mysql_error());
 					} else {
 						DB::query($sql_) or die('Problem z zapytaniem '.mysql_error());
 					}