Laurent Destailleur 3 rokov pred
rodič
commit
66a7992441
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      htdocs/takepos/genimg/index.php

+ 1 - 0
htdocs/takepos/genimg/index.php

@@ -81,6 +81,7 @@ if ($query == "cat") {
 	$objProd->fetch($id);
 	$image = $objProd->show_photos('product', $conf->product->multidir_output[$objProd->entity], 'small', 1);
 
+	$match = array();
 	preg_match('@src="([^"]+)"@', $image, $match);
 	$file = array_pop($match);
 	if ($file == "") {