Commit 7359b98e authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4740 (Some actions may fail on Conversr multi-site-network installs on PHP 8.1)

parent e310af6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ function reload_lang_fields($full = false, $only_table = null)
    if ($only_table !== null) {
        $sql .= ' AND ' . db_string_equal_to('m_table', $only_table);
    }
    if (($msn_running) && (substr($only_table, 0, 2) === 'f_')) {
    if (($msn_running) && ($only_table !== null) && (substr($only_table, 0, 2) === 'f_')) {
        $_table_lang_fields = array(); // Optimisation, as it'll get overwritten anyway
    } else {
        $_table_lang_fields = $GLOBALS['SITE_DB']->query($sql, null, null, true);