0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00

- fix: remove spurious comma from goto when removing vacation alias

reported by inle in https://sourceforge.net/forum/message.php?msg_id=4564628


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@152 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Christian Boltz 2007-10-12 19:35:53 +00:00
parent b424d39574
commit de0f81c0b4

View File

@ -113,8 +113,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
//only one of these will do something, first handles address at beginning and middle, second at end, third if it's the only alias record.
$goto= preg_replace ( "/$vacation_goto,/", '', $tGoto);
$goto= preg_replace ( "/,$vacation_goto/", '', $tGoto);
$goto= preg_replace ( "/$vacation_goto/", '', $tGoto);
$goto= preg_replace ( "/,$vacation_goto/", '', $goto);
$goto= preg_replace ( "/$vacation_goto/", '', $goto);
$query = "UPDATE $table_alias SET goto='$goto',modified=NOW() WHERE address='$USERID_USERNAME'";
if($goto == '') {