You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-29 22:41:11 +03:00
two small bugfixes:
- syntax error - fix commentation marks git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@944 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@ -30,7 +30,7 @@ class Model {
|
||||
$w = $parameters['where']; # where = array('column', 'value' )
|
||||
$sql .= " WHERE $w[0] = $w[1]";
|
||||
} elseif ( array_key_exists('limit', $parameter ) ) {
|
||||
$l = $parameter['limit'] # limit = array(start, length)
|
||||
$l = $parameter['limit']; # limit = array(start, length)
|
||||
$sql .= " LIMIT $l[0], $l[1]";
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ class UserController extends Controller {
|
||||
//$this->User->values = array('frit@example.com', 'hased HMAC_MD5 PW', 'Fritz', '/home/fritz/maildir', 51200000, 'fritz', 'example.com', '{[CREATED]}', '{[MODIFIED]}'); {} = Model should replace something, [] = constant not tablenames
|
||||
|
||||
if( ! $this->User->save() ) {
|
||||
$this->errormsg[] = 'The data can't be saved.';
|
||||
$this->errormsg[] = "The data can't be saved.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -44,7 +44,7 @@ class UserController extends Controller {
|
||||
//$this->User->values = array('frit@example.com', 'hased HMAC_MD5 PW', 'Fritz', '/home/fritz/maildir', 51200000, 'fritz', 'example.com', '{[CREATED]}', '{[MODIFIED]}'); {} = Model should replace something, [] = constant not tablenames
|
||||
|
||||
if( ! $this->User->save() ) {
|
||||
$this->errormsg[] = 'The data can't be saved.';
|
||||
$this->errormsg[] = "The data can't be saved.";
|
||||
return false;
|
||||
}
|
||||
//redirect to view($id)
|
||||
|
Reference in New Issue
Block a user