Advertisement
webchuyennghiep247

Warning in ./libraries/classes/Config/FormDisplay.php#658 “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”?

Jul 25th, 2020
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.04 KB | None | 0 0
  1. Các bác tìm file FormDisplay.php
  2.  
  3. Thường nó nằm ở các đường dẫn như:
  4. /usr/share/phpmyadmin/libraries/config/FormDisplay.php
  5. /home/domain.com/private_html/phpmyadmin/libraries/classes/Config/FormDisplay.php
  6. /home/domain.com/private_html/phpmyadmin/libraries/config/FormDisplay.php
  7.  
  8. // RỒI CÁC BẠN MỞ FILE FormDisplay.php THAY THẾ ĐOẠN CODE SAU:
  9. case 'select':
  10.      $successfully_validated = $this->_validateSelect(
  11.      $_POST[$key],
  12.      $form->getOptionValueList($system_path)
  13.      );
  14.      if (! $successfully_validated) {
  15.          $this->_errors[$work_path][] = __('Incorrect value!');
  16.          $result = false;
  17.          continue;
  18.     }
  19.     break;
  20.  
  21. // BẰNG ĐOẠN CODE Ở DƯỚI LÀ XONG
  22.  
  23. case 'select':
  24.      $successfully_validated = $this->_validateSelect(
  25.      $_POST[$key],
  26.      $form->getOptionValueList($system_path)
  27.      );
  28.      if (! $successfully_validated) {
  29.          $this->_errors[$work_path][] = __('Incorrect value!');
  30.          $result = false;
  31.          break;
  32.     }
  33.     break;
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement