Fix var init

This commit is contained in:
Laurent Destailleur 2021-09-09 03:34:51 +02:00
parent 8b58de50d5
commit 66a7992441

View File

@ -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 == "") {