caipin 8 år sedan
förälder
incheckning
dcddd8ec34
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      protected/controller/MainController.php

+ 3 - 2
protected/controller/MainController.php

@@ -141,8 +141,9 @@ class MainController extends DooController {
 		//http://yn.com/api/synlogin?username=cp123456&password=123456
 		
 	
-		$passwork = isset ( $_POST['passwork'] ) ? $_POST['passwork'] : "";
-		$uid = isset ( $_POST['user'] ) ? $_POST['user'] : "";
+		$passwork = $this->get_args('passwork') ? $this->get_args('passwork') : 0;
+		$uid = $this->get_args('user') ? $this->get_args('user') : 0;
+		
 
 		Doo::loadModel ( 'staff' );
 		$staff = new staff ();