Fixed a reference error in rep303.php for certain PHP versions.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 8 May 2013 08:21:18 +0000 (10:21 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 8 May 2013 08:21:18 +0000 (10:21 +0200)
reporting/rep303.php

index 2f3e7a35404478d7eb9e6b0475a788293c37aab2..e12e5f0f430bdafdaace4fd4f9255a23fbefba81 100644 (file)
@@ -52,7 +52,7 @@ function getTransactions($category, $location, $item_like)
   {
     $regexp = null;
 
-    if(sscanf($item_like, "/%s", &$regexp)==1)
+    if(sscanf($item_like, "/%s", $regexp)==1)
       $sql .= " AND ".TB_PREF."stock_master.stock_id RLIKE ".db_escape($regexp);
     else
       $sql .= " AND ".TB_PREF."stock_master.stock_id LIKE ".db_escape($item_like);