Version 2.4.19, PHP error because of an undefined index (Bugs)

by Auge ⌂, Tuesday, February 05, 2019, 11:05 (1286 days ago) @ Juanma


Do not change anything, I just did an update as I always do. The version I had installed was

I attached capture of mlf2_temp_infos


Ok, the table exists, the relevant dataset exists in the table, but nevertheless the database request for the dataset got no result.

$rNDA = mysqli_query($connid, "SELECT value FROM " . $db_settings['temp_infos_table'] . " WHERE name = 'next_daily_actions'");
$nda = mysqli_fetch_assoc($rNDA);
if ($current_time > intval($nda[0]['value'])) {

Undefined offset 0 of your error message says, that there is no element $nda[0], what equals to "there is no first dataset". When you run the following database query in the SQL-tab of phpMyAdmin, what is the result?

SELECT VALUE FROM mlf2_temp_infos WHERE name = 'next_daily_actions';

Tschö, Auge

Trenne niemals Müll, denn er hat nur eine Silbe!

Complete thread:

 RSS Feed of thread