Hardening
This commit is contained in:
@@ -135,9 +135,15 @@ $view .= '<div class="content-block tab-content active">
|
||||
</table>
|
||||
</div>';
|
||||
|
||||
if (!is_array(json_decode($products_versions['measurement'],true))){
|
||||
$view .= '
|
||||
<label for="">'.($product_version_main_product_option ?? 'Main Product Option').'</label>
|
||||
<input type="text" name="measurement" placeholder="'.($product_version_main_product_option ?? 'Main Product Option').'" value="'.$products_versions['measurement'].'">';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (isset($_GET['rowID']) && $_GET['rowID'] !='' && !empty($products_versions['measurement'])){
|
||||
if (isset($_GET['rowID']) && $_GET['rowID'] !='' && !empty($products_versions['measurement']) && is_array(json_decode($products_versions['measurement'],true))){
|
||||
$measurements = json_decode($products_versions['measurement'],true);
|
||||
|
||||
$view .= '
|
||||
|
||||
Reference in New Issue
Block a user