Skip to content
Snippets Groups Projects
Commit 3fb0e07d authored by Martin Doucha's avatar Martin Doucha
Browse files

Fix act_validate()

parent b83823e5
No related branches found
No related tags found
No related merge requests found
...@@ -186,10 +186,6 @@ function act_sendheaders($headers) { ...@@ -186,10 +186,6 @@ function act_sendheaders($headers) {
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
*/ */
function act_clean($act){ function act_clean($act){
global $lang;
global $conf;
global $INFO;
// check if the action was given as array key // check if the action was given as array key
if(is_array($act)){ if(is_array($act)){
list($act) = array_keys($act); list($act) = array_keys($act);
...@@ -214,6 +210,9 @@ function act_clean($act){ ...@@ -214,6 +210,9 @@ function act_clean($act){
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
*/ */
function act_validate($act) { function act_validate($act) {
global $conf;
global $INFO;
$act = act_clean($act); $act = act_clean($act);
// check if action is disabled // check if action is disabled
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment