Quote Originally Posted by carlwhat View Post
i've never used it. in a cursory look, it could use a complete refactor. i'm guessing this is just one of many sort of errors in the code. last updated almost 4 years ago.

for your specific error, you can try replacing the appropriate section as follows:

PHP Code:
function zen_get_notes_categories_array($all false){
  global 
$db;
  
  
$categories $db->Execute("SELECT * FROM " TABLE_NOTES_CATEGORIES " ORDER BY notes_categories_name");
  if(
$all == true){
    
$categories_array[] =  ['id' => 0'text' => 'All']; 
  }
  while(!
$categories->EOF){
   
$categories_array[] = ['id'=> $categories->fields['notes_categories_id'], 'text' => $categories->fields['notes_categories_name']]; 
   
$categories->MoveNext(); 
  }
  return 
$categories_array;
   

best.

After replacing the code, this error log was created...
Code:
[15-Jan-2021 20:13:43 America/Chicago] Request URI:  /XXkcaz00/index.php?cmd=notes&page=1&nID=6&action=edit, IP  address: 184.170.174.172
#1  require(/XXkcaz00/notes.php) called at [/XXkcaz00/index.php:11]
--> PHP Warning: Use of undefined constant TEXT_INFO_NOTE_PRIORITY -  assumed 'TEXT_INFO_NOTE_PRIORITY' (this will throw an Error in a future  version of PHP) in /XXkcaz00/notes.php on line 425.