Browse Source

formatting fix

tags/2.0.0-beta
davert 12 years ago
parent
commit
7f2d2da52c
  1. 6
      framework/yii/helpers/SecurityBase.php

6
framework/yii/helpers/SecurityBase.php

@ -120,10 +120,10 @@ class SecurityBase
static $keys;
$keyFile = Yii::$app->getRuntimePath() . '/keys.php';
if ($keys === null) {
$keys = array();
$keys = array();
if (is_file($keyFile)) {
$keys = require($keyFile);
}
$keys = require($keyFile);
}
}
if (!isset($keys[$name])) {
$keys[$name] = static::generateRandomKey($length);

Loading…
Cancel
Save