Skip to content

Commit 46e82c7

Browse files
author
Marius Cramer
committed
Changed to use IF()
1 parent a4cfc3c commit 46e82c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/tpl/authmysqlrc.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ MYSQL_QUOTA_FIELD quota
1616
#MYSQL_QUOTA_FIELD concat(quota,'S')
1717
#MYSQL_WHERE_CLAUSE access='y'
1818
#MYSQL_AUXOPTIONS_FIELD concat('disableimap=',disableimap,',disablepop3=',disablepop3)
19-
MYSQL_AUXOPTIONS_FIELD concat('disableimap=',(replace(disableimap,'y',1)),',','disablepop3=',(replace(disablepop3,'y',1)))
19+
MYSQL_AUXOPTIONS_FIELD concat('disableimap=', if(disableimap = 'y', 1, 0), ',', 'disablepop3=', if(disablepop3 = 'y', 1, 0))

0 commit comments

Comments
 (0)