浏览代码

PokazOferty Fix bug in convert options to srv

Piotr Labudda 11 年之前
父节点
当前提交
fa33bc3ad7
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      SE/superedit-POKAZ_OFERTY_AKTUALNE_FUNC.php

+ 6 - 0
SE/superedit-POKAZ_OFERTY_AKTUALNE_FUNC.php

@@ -3655,6 +3655,12 @@ class PokazOfertyController {
 			}
 		}
 		if (count($sqlSearch) <= 0) return false;
+		if (!array_key_exists('TVC', $this->id_options_to_srv)) {
+			$sqlSearch[] = "g.`ID_TVC`='0'";
+		}
+		if (!array_key_exists('TEL', $this->id_options_to_srv)) {
+			$sqlSearch[] = "g.`ID_TEL`='0'";
+		}
 		$sqlSearch = implode(" and ", $sqlSearch);
 
 		$offersIds = array_values($this->id_options_to_srv);