mirror of
https://github.com/Mibew/java.git
synced 2025-01-22 17:40:35 +03:00
get rid of php warnings
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@627 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
31d23ce95d
commit
f94b2879c5
@ -83,7 +83,7 @@ if( !$email ) {
|
||||
|
||||
if($settings["enablecaptcha"] == "1" && can_show_captcha()) {
|
||||
$captcha = getparam('captcha');
|
||||
$original = $_SESSION['captcha'];
|
||||
$original = isset($_SESSION['captcha']) ? $_SESSION['captcha'] : "";
|
||||
if(empty($original) || empty($captcha) || $captcha != $original) {
|
||||
$errors[] = getlocal('errors.captcha');
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ function setup_leavemessage($name, $email, $message, $groupid, $groupname, $info
|
||||
$page['showcaptcha'] = $settings["enablecaptcha"] == "1" && $canshowcaptcha ? "1" : "";
|
||||
$page['formgroupid'] = $groupid;
|
||||
$page['formgroupname'] = $groupname;
|
||||
$page['forminfo'] = topage($info);
|
||||
$page['info'] = topage($info);
|
||||
$page['referrer'] = urlencode(topage($referrer));
|
||||
}
|
||||
|
||||
|
@ -549,7 +549,7 @@ function webim_mail($toaddr, $reply_to, $subject, $body) {
|
||||
|
||||
$body = preg_replace("/\n/","\r\n", $body);
|
||||
|
||||
mail($toaddr, $real_subject, wordwrap(myiconv($webim_encoding, $mail_encoding, $body),70), $headers);
|
||||
@mail($toaddr, $real_subject, wordwrap(myiconv($webim_encoding, $mail_encoding, $body),70), $headers);
|
||||
}
|
||||
|
||||
$dbversion = '1.6.2';
|
||||
|
@ -79,7 +79,7 @@ function expand_var($matches) {
|
||||
} else if($prefix == 'form:') {
|
||||
return form_value($var);
|
||||
} else if($prefix == 'page:') {
|
||||
return $page[$var];
|
||||
return isset($page[$var]) ? $page[$var] : "";
|
||||
} else if($prefix == 'if:' || $prefix == 'else:' || $prefix == 'endif:' || $prefix == 'ifnot:') {
|
||||
return "<!-- wrong $prefix:$var -->";
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ function group_by_id($id) {
|
||||
|
||||
function get_group_name($group) {
|
||||
global $home_locale, $current_locale;
|
||||
if( $home_locale == $current_locale || !$group['vccommonname'] )
|
||||
if( $home_locale == $current_locale || !isset($group['vccommonname']) || !$group['vccommonname'])
|
||||
return $group['vclocalname'];
|
||||
else
|
||||
return $group['vccommonname'];
|
||||
|
Loading…
Reference in New Issue
Block a user