Bug fixes

This commit is contained in:
dignajar 2015-06-27 01:32:29 -03:00
parent 8530c8a7ba
commit 9e523d307f
3 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ function editUser($args)
return $dbUsers->setPassword($args); return $dbUsers->setPassword($args);
} }
else { else {
Alert::set('Passwords are differents.'); Alert::set('Passwords are differents');
return false; return false;
} }
} }
@ -39,7 +39,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
} }
if( editUser($_POST) ) { if( editUser($_POST) ) {
Alert::set('User saved successfuly.'); Alert::set('User saved successfuly');
} }
} }

View File

@ -15,12 +15,12 @@ function addPage($args)
// Add the page. // Add the page.
if( $dbPages->add($args) ) if( $dbPages->add($args) )
{ {
Alert::set('Page added successfuly.'); Alert::set('Page added successfuly');
Redirect::page('admin', 'manage-pages'); Redirect::page('admin', 'manage-pages');
} }
else else
{ {
Alert::set('Error occurred when trying to create the page.'); Alert::set('Error occurred when trying to create the page');
} }
} }

View File

@ -15,12 +15,12 @@ function addPost($args)
// Add the page. // Add the page.
if( $dbPosts->add($args) ) if( $dbPosts->add($args) )
{ {
Alert::set('Post added successfuly.'); Alert::set('Post added successfuly');
Redirect::page('admin', 'manage-posts'); Redirect::page('admin', 'manage-posts');
} }
else else
{ {
Alert::set('Error occurred when trying to create the post.'); Alert::set('Error occurred when trying to create the post');
} }
} }