Warn user when pressing the vote button without selecting a slot
This commit is contained in:
committed by
WineHQ
parent
43fa6617d4
commit
d03359ed2e
@@ -153,9 +153,13 @@ function vote_update($vars)
|
|||||||
if( !is_numeric($vars['iVersionId']) OR !is_numeric($vars['iSlot']))
|
if( !is_numeric($vars['iVersionId']) OR !is_numeric($vars['iSlot']))
|
||||||
{
|
{
|
||||||
if(is_numeric($vars['iVersionId']))
|
if(is_numeric($vars['iVersionId']))
|
||||||
|
{
|
||||||
|
addmsg("You need to select a voting slot", "red");
|
||||||
util_redirect_and_exit($oVersion->objectMakeUrl());
|
util_redirect_and_exit($oVersion->objectMakeUrl());
|
||||||
else
|
} else
|
||||||
|
{
|
||||||
util_redirect_and_exit(apidb_fullurl("index.php"));
|
util_redirect_and_exit(apidb_fullurl("index.php"));
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user