PagesController->search( ) --> PHP notice "Undefined offset"
Steps to reproduce
on develop
branch
- /pages/search?search=zip
- /pages/search?search=Asqatasun
TODO
-
test on master
branch
What is the current bug behavior?
PHP notice
Notice: Undefined offset: 0 in /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Utility/Hash.php on line 75
What is the expected correct behavior?
no PHP notice
Relevant logs and/or screenshots
( ! ) Notice: Undefined offset: 0 in /home/comptoir/Comptoir-srv/vendor/cakephp/cakephp/src/Utility/Hash.php on line 75
Call Stack
# Time Memory Function Location
1 0.0000 360528 {main}( ) .../index.php:0
2 0.0027 1297800 Cake\Routing\Dispatcher->dispatch( ) .../index.php:36
3 0.0027 1309040 Cake\Http\ActionDispatcher->dispatch( ) .../Dispatcher.php:60
4 0.0211 2535952 Cake\Http\ActionDispatcher->_invoke( ) .../ActionDispatcher.php:93
5 0.0215 2580376 App\Controller\AppController->invokeAction( ) .../ActionDispatcher.php:119
6 0.0215 2580752 call_user_func_array:{/home/comptoir/Comptoir-srv/vendor/friendsofcake/crud/src/Controller/ControllerTrait.php:51} ( ) .../ControllerTrait.php:51
7 0.0215 2580816 App\Controller\Api\V1\PagesController->search( ) .../ControllerTrait.php:51
8 0.0238 2735144 Cake\Http\ServerRequest->getData( ) .../PagesController.php:208
9 0.0238 2735144 Cake\Utility\Hash::get( ) .../ServerRequest.php:1494
Possible fixes
??