Huawei HW-050100E2W

Зарядные устройства Huawei

PHP notice

PHP notice

Uninitialized string offset: -6

/var/www/public_zon.by/web/public_http/product_single.php(110)

098 
099         <!-- Project Info -->
100         <div class="row">
101             <!-- Project Slider -->
102             <div class="col-sm-5 site-block">
103                 <div id="project-carousel" class="carousel slide" data-ride="carousel" data-interval="3000">
104                     <!-- Wrapper for slides -->
105                     <div class="carousel-inner text-center">
106                         <div class="item active">
107                             <?php
108                             $p = strrpos( $product_main['product_image'], '.');
109 
110                             $d1 = $product_main['product_image'][$p-6] . $product_main['product_image'][$p-5];
111                             $d2 = $product_main['product_image'][$p-4] . $product_main['product_image'][$p-3];
112                             $d3 = $product_main['product_image'][$p-2] . $product_main['product_image'][$p-1];
113 
114                             $pimage['path'] =   $d1.'/'.$d2.'/'.$d3.'/';
115                             ?>
116                             <img src="http://sqa.zon.by/<?php echo $pimage['path'].$product_main['product_image']; ?>" alt="Фото товара">
117                         </div>
118                         <?php
119                         if(!empty($product_image)){
120                         foreach($product_image as $pimage){
121                             ?>
122                         <div class="item">

Stack Trace

#2
+
 /var/www/public_zon.by/web/public_http/product_single.php(110): CApplication->handleError(8, "Uninitialized string offset: -6", "/var/www/public_zon.by/web/public_http/product_single.php", 110, ...)
105                     <div class="carousel-inner text-center">
106                         <div class="item active">
107                             <?php
108                             $p = strrpos( $product_main['product_image'], '.');
109 
110                             $d1 = $product_main['product_image'][$p-6] . $product_main['product_image'][$p-5];
111                             $d2 = $product_main['product_image'][$p-4] . $product_main['product_image'][$p-3];
112                             $d3 = $product_main['product_image'][$p-2] . $product_main['product_image'][$p-1];
113 
114                             $pimage['path'] =   $d1.'/'.$d2.'/'.$d3.'/';
115                             ?>