The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
file admin_notifications.php accept empty value
#2
The Input Class sanitizes null values and turns it into "" (essential empty or null but neither), what I generally do is this:
Assuming title of textarea is called "textarea":
$textarea = Input::get('textarea');
if($textarea=='') $textarea=null;

Then you would be able to use is_null. Otherwise, you can use =='' instead.

Brandin.
  Reply


Messages In This Thread
file admin_notifications.php accept empty value - by ccataldo - 03-27-2018, 05:48 AM
file admin_notifications.php accept empty value - by Brandin - 03-27-2018, 10:24 AM
file admin_notifications.php accept empty value - by ccataldo - 03-27-2018, 03:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)