Replace 'AND' with '&&'

pull/2487/head
jmontoyaa 9 years ago
parent d2d9065c55
commit d573043c30
  1. 2
      main/forum/newthread.php
  2. 2
      main/inc/lib/dashboard.lib.php
  3. 6
      main/lp/aicc.class.php
  4. 2
      main/lp/learnpathItem.class.php
  5. 2
      main/survey/survey.php

@ -84,7 +84,7 @@ if (!api_is_allowed_to_edit(false, true) &&
api_not_allowed();
}
// 4. anonymous posts are not allowed and the user is not logged in
if (!$_user['user_id'] AND $current_forum['allow_anonymous'] <> 1) {
if (!$_user['user_id'] && $current_forum['allow_anonymous'] <> 1) {
api_not_allowed();
}

@ -264,7 +264,7 @@ class DashboardManager
$dashboard_pluginpath = api_get_path(SYS_PLUGIN_PATH).'dashboard/';
$handle = @opendir($dashboard_pluginpath);
while (false !== ($file = readdir($handle))) {
if ($file <> '.' AND $file <> '..' AND is_dir($dashboard_pluginpath.$file)) {
if ($file <> '.' && $file <> '..' && is_dir($dashboard_pluginpath.$file)) {
$possiblePlugins[] = $file;
}
}

@ -447,9 +447,9 @@ class aicc extends learnpath
foreach ($files_found as $file_name => $file_exts) {
$temp = (
!empty($files_found[$file_name]['crs'])
AND !empty($files_found[$file_name]['au'])
AND !empty($files_found[$file_name]['des'])
AND !empty($files_found[$file_name]['cst'])
&& !empty($files_found[$file_name]['au'])
&& !empty($files_found[$file_name]['des'])
&& !empty($files_found[$file_name]['cst'])
);
if ($temp) {
if ($this->debug > 1) { error_log('New LP - aicc::import_package() - Found all config files for '.$file_name, 0); }

@ -3095,7 +3095,7 @@ class learnpathItem
if (self::DEBUG > 0) {
error_log('learnpathItem::set_level(' . $int . ')', 0);
}
if (!empty($int) AND $int == strval(intval($int))) {
if (!empty($int) && $int == strval(intval($int))) {
$this->level = $int;
}
}

@ -110,7 +110,7 @@ if (isset($action)) {
SurveyManager::move_survey_question($my_action_survey,$my_question_id_survey,$my_survey_id_survey);
echo Display::return_message(get_lang('SurveyQuestionMoved'), 'confirmation');
}
if ($action == 'delete' AND is_numeric($_GET['question_id'])) {
if ($action == 'delete' && is_numeric($_GET['question_id'])) {
SurveyManager::delete_survey_question($my_survey_id_survey, $my_question_id_survey, $survey_data['is_shared']);
}
}

Loading…
Cancel
Save