Corrected 'factor' parameter checking (fixes 0000012)
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 7 Jul 2008 21:33:24 +0000 (21:33 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 7 Jul 2008 21:33:24 +0000 (21:33 +0000)
sales/includes/sales_db.inc

index 5c9d1142a9b79d475957f4769036236b7a4ab4f4..acdc245cc0acca3be287c904422dd41ed11135f0 100644 (file)
@@ -52,7 +52,7 @@ function get_price ($stock_id, $currency, $sales_type_id, $factor=null, $date=nu
        if ($date == null)
            $date = Today();
 
-       if ($factor == null) 
+       if ($factor === null) 
        {
                $myrow = get_sales_type(get_post('sales_type_id'));
                $factor = $myrow['factor'];