Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1098739
D480.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 14, 4:55 AM
Size
740 B
Mime Type
text/x-diff
Expires
Fri, Aug 15, 4:55 AM (1 h, 10 m)
Engine
blob
Format
Raw Data
Handle
709369
Attached To
D480: INP-1872 - Properly handle constant absence during category cache rebuild
D480.diff
View Options
Index: branches/5.2.x/core/units/categories/cache_updater.php
===================================================================
--- branches/5.2.x/core/units/categories/cache_updater.php
+++ branches/5.2.x/core/units/categories/cache_updater.php
@@ -330,8 +330,8 @@
$this->Conn->Query($sql);
}
- $add_charset = defined(SQL_CHARSET)? ' CHARACTER SET '.SQL_CHARSET.' ' : '';
- $add_collation = defined(SQL_COLLATION)? ' COLLATE '.SQL_COLLATION.' ' : '';
+ $add_charset = defined('SQL_CHARSET') ? ' CHARACTER SET ' . SQL_CHARSET . ' ' : '';
+ $add_collation = defined('SQL_COLLATION') ? ' COLLATE ' . SQL_COLLATION . ' ' : '';
$this->Conn->Query(sprintf(
'CREATE TABLE `%1$s` (data LONGTEXT%2$s%3$s) %2$s%3$s',
Event Timeline
Log In to Comment