Skip to content

Commit 56e1edc

Browse files
committed
* replace deprecated key_exists by array_key_exists. cosmetic
1 parent 7c22a01 commit 56e1edc

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

core/Form/Primitives/PrimitiveNoValue.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function importValue($value)
4848
public function import($scope)
4949
{
5050
if (
51-
key_exists($this->name, $scope)
51+
array_key_exists($this->name, $scope)
5252
&& $scope[$this->name] == null
5353
)
5454
return $this->imported = true;

main/Net/Http/HeaderUtils.class.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,9 @@ public static function sendNotCachedHeader()
122122
public static function sendContentLength($length)
123123
{
124124
Assert::isInteger($length);
125-
126-
header(
127-
"Content-Length: {$length}"
128-
);
129-
125+
126+
header("Content-Length: {$length}");
127+
130128
self::$headerSent = true;
131129
}
132130

0 commit comments

Comments
 (0)