PHP Notice: Undefined index (on leftNav Title Link)
Issue #409
new
The error occurs when clicking the title link at the top of the side navigation bar while viewing any table in the database.
This generates the "error_log" file on the server containing the log of those error notifications, by example:
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2058
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2061
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2064
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2069
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2073
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2076
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2080
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2084
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2089
[21-Feb-2023 21:38:37 UTC] PHP Notice: Undefined index: action in /home/chikindz/public_html/assets/db/phpliteadmin.php on line 2092
To avoid this error I modified the code of line 2054 in the main file "phpliteadmin.php".
ORIGINAL CODE:
if($target_table)
NEW CODE:
if($target_table && isset($_GET['action']))
I hope this information is useful and if you consider it pertinent, include the modification in the original file so that it is available to all users.
Greetings.-