Commit 11fd8319 by san58

мелкие правки

1 parent 832bbc13
......@@ -106,8 +106,8 @@ class Host extends \yii\db\ActiveRecord
public static function getFStatus($status = false)
{
$arr = [
self::STATUS_OFF => 'Yes',
self::STATUS_ON => 'No'
self::STATUS_OFF => 'No',
self::STATUS_ON => 'Yes'
];
if (is_numeric($status)) {
if (array_key_exists($status, $arr)) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!