mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
Don't store settings in static array
This commit is contained in:
@@ -19,11 +19,7 @@ class SettingsHelper
|
||||
*/
|
||||
public static function get(String $name)
|
||||
{
|
||||
if (self::$settings === null) {
|
||||
self::$settings = Setting::get();
|
||||
}
|
||||
|
||||
$name = self::$settings->where('name', $name);
|
||||
$name = Setting::where('name', $name)->get();
|
||||
|
||||
if (sizeof($name) == 0) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user