V ceniku se nezobrazuji blbosti
authorThomas Mudrunka <tomas@mudrunka.cz>
Thu, 1 Dec 2011 13:39:48 +0000 (14:39 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Thu, 1 Dec 2011 13:39:48 +0000 (14:39 +0100)
apis/price-list.inc.php

index 67e0c4c38e933c7f396eb10c4ce9f7aa6171ef69..cc80af20d9fc44597260c9a489a74ef9fa37b896 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-$sql = 'SELECT model_name,model_price_out FROM model';
+$sql = 'SELECT model_name,model_price_out FROM model WHERE model_price_out > 0 AND category_id > 0';
 $result = $this->db->safe_query_fetch($sql);
 foreach($result as $item) $items[$item['model_name']]=$item['model_price_out'];
 die(json_encode($items));
This page took 0.132769 seconds and 4 git commands to generate.