Skip to content

Commit

Permalink
Fixes poweradmin#276 - Initialize array in traditional way.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmondas Girkantas committed Mar 16, 2016
1 parent 29a7e7c commit 6ecfc68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/record.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ function get_users_from_domain_id($id) {
function search_zone_and_record($parameters, $permission_view, $sort_zones_by, $sort_records_by) {
global $db;

$return = array('zones' => [], 'records' => []);
$return = array('zones' => array(), 'records' => array());

if ($parameters['reverse']) {
if (filter_var($parameters['query'], FILTER_FLAG_IPV4)) {
Expand Down
2 changes: 1 addition & 1 deletion vendor/poweradmin/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function hash($password) {
if ($password_encryption === 'md5salt') {
return self::gen_mix_salt($password);
} elseif ($password_encryption === 'bcrypt') {
return password_hash($password, PASSWORD_BCRYPT, ['cost' => $password_encryption_cost]);
return password_hash($password, PASSWORD_BCRYPT, array('cost' => $password_encryption_cost));
} else {
return md5($password);
}
Expand Down

0 comments on commit 6ecfc68

Please sign in to comment.