Fix coding style

This commit is contained in:
Dmitriy Simushev 2014-05-16 08:32:25 +00:00
parent 3e01b98388
commit 8e01325cad
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,8 @@ class Database
* @param string $db Database name. * @param string $db Database name.
* @param string $prefix Database tables prefix * @param string $prefix Database tables prefix
*/ */
public static function initialize($host, $user, $pass, $use_pconn, $db, $prefix) { public static function initialize($host, $user, $pass, $use_pconn, $db, $prefix)
{
// Check PDO // Check PDO
if (!extension_loaded('PDO')) { if (!extension_loaded('PDO')) {
throw new \Exception('PDO extension is not loaded'); throw new \Exception('PDO extension is not loaded');

View File

@ -81,8 +81,7 @@ if ($generate_button) {
$image_href .= "&group=$group_id"; $image_href .= "&group=$group_id";
} }
$message = get_image($image_href, $size[0], $size[1]); $message = get_image($image_href, $size[0], $size[1]);
} } else {
else {
$disable_invitation = true; $disable_invitation = true;
$lang = verify_param("lang", "/^[\w-]{2,5}$/", ""); $lang = verify_param("lang", "/^[\w-]{2,5}$/", "");