$data_dir, $username;
if (empty($sOnload)) {
- if (strpos($action, 'reply') !== FALSE && $reply_focus) {
+ if (!empty($action) && strpos($action, 'reply') !== FALSE && $reply_focus) {
if ($reply_focus == 'select')
$sOnload = 'checkForm(\'select\');';
else if ($reply_focus == 'focus')
global $reply_focus, $action, $oTemplate;
if (empty($sOnload)) {
- if (strpos($action, 'reply') !== FALSE && $reply_focus) {
+ if (!empty($action) && strpos($action, 'reply') !== FALSE && $reply_focus) {
if ($reply_focus == 'select')
$sOnload = 'checkForm(\'select\');';
else if ($reply_focus == 'focus')