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)
|
public static function get(String $name)
|
||||||
{
|
{
|
||||||
if (self::$settings === null) {
|
$name = Setting::where('name', $name)->get();
|
||||||
self::$settings = Setting::get();
|
|
||||||
}
|
|
||||||
|
|
||||||
$name = self::$settings->where('name', $name);
|
|
||||||
|
|
||||||
if (sizeof($name) == 0) {
|
if (sizeof($name) == 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user