Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix user_pref_cache_array_rows if fetch_all fails
DbQuery::fetch_all() can return false if the query execution fails. In that case, the foreach triggers a PHP "Invalid argument supplied for foreach()" warning. Also, improve code readability by storing the user ID in a variable to avoid repeated typecasts. Fixes #25850
- Loading branch information