This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Undefined offset: 0 #11
Comments
is this happen when the $arguments is null? |
no, this happen when is has one item in array. |
Try it again |
tks guy :) |
Use dev-master instead, i still haven't pushed it as a tag. 👍 |
twouters
added a commit
to twouters/cpanel-php
that referenced
this issue
Feb 24, 2016
$argument is enumerated array containing the parameters passed to the method. As far as I know, only one argument is expected here (an array of parameters to pass to the API function) so we can safely use `$arguments[0]`.
This is still a problem because the
This would result in the following
Which results in the following POST request:
|
twouters
added a commit
to twouters/cpanel-php
that referenced
this issue
Feb 24, 2016
$argument is enumerated array containing the parameters passed to the method. As far as I know, only one argument is expected here (an array of parameters to pass to the API function) so we can safely use `$arguments[0]`.
mgufrone
added a commit
that referenced
this issue
Feb 26, 2016
Hello, This issue still not resolved. There is code like this:
Code executed and result received, but with notice:
Sure, I can use "@" to supress that dirty notice, but it's not the best way... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I has get error when dumpzone.
Resolve:
change
'query' => count($arguments) > 1 ? $arguments : $arguments[0],
to
'query' => $arguments,
Please check it :)
The text was updated successfully, but these errors were encountered: