Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2594747
D25371.1730318527.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
549 B
Referenced Files
None
Subscribers
None
D25371.1730318527.diff
View Options
diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
--- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
+++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
@@ -33,7 +33,7 @@
}
public function setValueFromStorage($value) {
- if (strlen($value)) {
+ if (phutil_nonempty_scalar($value)) {
$value = (int)$value;
} else {
$value = null;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 30, 20:02 (6 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
953659
Default Alt Text
D25371.1730318527.diff (549 B)
Attached To
Mode
D25371: Fix PHP 8.1 "strlen(null)" exception creating Blueprint Working Copy
Attached
Detach File
Event Timeline
Log In to Comment