mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix used type of value in Models/Tmux from string to bool
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2017-07-31 DariusIII
|
||||
* Fix: Fix used type of value in Models/Tmux from string to bool
|
||||
* Chg: Update www/index.php
|
||||
* Chg: Update www/smarty.php (also fixes apache errors)
|
||||
2017-07-30 DariusIII
|
||||
|
||||
+3
-3
@@ -17,9 +17,9 @@ class Tmux extends Model
|
||||
protected $dateFormat = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var bool
|
||||
*/
|
||||
public $timestamps = 'false';
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
@@ -36,7 +36,7 @@ class Tmux extends Model
|
||||
*/
|
||||
public static function value($setting, $returnAlways = false)
|
||||
{
|
||||
$result = Tmux::query()->where('setting', $setting)->value('value');
|
||||
$result = self::query()->where('setting', $setting)->value('value');
|
||||
|
||||
if ($result !== null) {
|
||||
$value = $result;
|
||||
|
||||
Reference in New Issue
Block a user