ErrorException [ Notice ]: Uninitialized string offset: 2

APPPATH/classes/KuponConst.php [ 85 ]

80 		$result = '';
81 		
82 		$phone = preg_replace('/[^0-9]+/','',$phone); // csak szamok maradnak
83 
84 		// '+36 1 234 5678' Bp.
85 		if ( $phone[2] == 1 AND  preg_match( '/(\d{2})(\d{1})(\d{3})(\d{4})$/', $phone,  $matches ) ) 
86 			$result = '+'. $matches[1] . ' ' .$matches[2] . ' ' . $matches[3] . ' ' . $matches[4];						
87 		
88 		// '+36 22 261 283' Vidék
89 		elseif ( strlen($phone) == 10 AND  preg_match( '/(\d{2})(\d{2})(\d{3})(\d{3})$/', $phone,  $matches ) ) 
90 			$result = '+'. $matches[1] . ' ' .$matches[2] . ' ' . $matches[3] . ' ' . $matches[4];		
  1. APPPATH/classes/KuponConst.php [ 85 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/views/store_full.php [ 43 ] » KuponConst::formatPhone(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  5. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  6. APPPATH/views/layout.php [ 308 ] » Kohana_View->__toString()

  7. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  8. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  9. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  10. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

  11. {PHP internal call} » Kohana_Controller->execute()

  12. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  13. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  14. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  15. DOCROOT/index.php [ 127 ] » Kohana_Request->execute()

Environment

Ha partnerként részt szeretne venni a HOMEINFO hetek akcióban, vegye fel velünk a kapcsolatot!
hirdetes@homeinfo.hu • +36 70/ 413-37-97 • +36 70/ 433-19-10

Android app iOS app

homeinfohetekGYIKÁSZFAdatkezelési nyilatkozat
© 2010-2020 Develon Hungary Szolgáltató Kft. • A változtatás jogát fenntartjuk!

 SimplePay vásárlói tájékoztató