Index: branches/5.1.x/units/polls/polls_config.php =================================================================== diff -u -N -r13548 -r13577 --- branches/5.1.x/units/polls/polls_config.php (.../polls_config.php) (revision 13548) +++ branches/5.1.x/units/polls/polls_config.php (.../polls_config.php) (revision 13577) @@ -1,6 +1,6 @@ 'kOptionsFormatter', 'options' => Array (0 => 'la_No', 1 => 'la_Yes',), 'use_phrases' => 1, 'default' => 1, 'not_null' => 1, - ), + ), 'AllowMultipleVotings' => Array ( 'type' => 'int', 'formatter' => 'kOptionsFormatter', @@ -156,7 +156,7 @@ 'CalculatedFields' => Array ( '' => Array ( -// 'DaysLeft' => 'IF( ISNULL(%1$s.EndDate), IF (%1$s.CreatedById = -1, \'root\', IF (%1$s.CreatedById = -2, %1$s.PosterAlias, \'n/a\')), \'Never\' )', +// 'DaysLeft' => 'IF( ISNULL(%1$s.EndDate), IF (%1$s.CreatedById = ' . USER_ROOT . ', \'root\', IF (%1$s.CreatedById = ' . USER_GUEST . ', %1$s.PosterAlias, \'n/a\')), \'Never\' )', ), ),