[Bug 914] New - Small syntax error in NAG

bugs@bugs.horde.org bugs@bugs.horde.org
Fri, 22 Mar 2002 09:26:32 -0400


http://bugs.horde.org/show_bug.cgi?id=914

*** shadow/914	Fri Mar 22 09:26:32 2002
--- shadow/914.tmp.9612	Fri Mar 22 09:26:32 2002
***************
*** 0 ****
--- 1,33 ----
+ Bug#: 914
+ Product: Horde
+ Version: 2.0 Stable
+ Platform: Mozilla 5.x
+ OS/Version: Linux
+ Status: NEW   
+ Resolution: 
+ Severity: trivial
+ Priority: P2
+ Component: Core
+ Area: BUILD
+ AssignedTo: chuck@horde.org                            
+ ReportedBy: tychay@mac.com               
+ URL: 
+ Summary: Small syntax error in NAG
+ 
+ (This was placed in "Core" because Galeon won't allow me to select the "Nag"
+ component.)
+ 
+ nag/lib/Driver/sql.php: Line 204
+ The sprintf statement specifies 11 string replacements but there are only 10
+ variables supplied. This causes Nag to break when adding a task to the database.
+ 
+ Fix: Delete one of the last %d's
+ 
+ Note: Be aware that this was probably due to the fact that Nag does not yet
+ support the task_private field. So some programmer might have added a %d for
+ task_private but forgot to provide 1) the task_private field in SQL and 2) the
+ variable associated with task_private ($task['private'] if any).
+ 
+ Take care,
+ 
+ terry