6.0.0-alpha14
7/2/25

[#7894] Notice: Undefined index: count in /Block/cloud.php
Summary Notice: Undefined index: count in /Block/cloud.php
Queue Ansel
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester horde (at) smartsector (dot) hu
Created 01/26/2009 (6001 days ago)
Due
Updated 01/26/2009 (6001 days ago)
Assigned 01/26/2009 (6001 days ago)
Resolved 01/26/2009 (6001 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/26/2009 05:34:07 PM Michael Rubinsky Comment #5
State ⇒ Resolved
Reply to this comment
Ah. That was the bit of information I needed.  The default pref in 
config/prefs.php.dist was missing the params array.



Fixed, and thanks for reporting.
01/26/2009 05:29:25 PM CVS Commit Comment #4 Reply to this comment
01/26/2009 05:01:47 PM horde (at) smartsector (dot) hu Comment #3 Reply to this comment
The $_params is an

Array ( )



I recive this error message after install.
I'm not sure I see how the number of tags you have would effect that
parameter. The only way that you would get an undefined index error
on 'count' would be if the block was not properly configured.
$_params['count'] is the user-configured maximum number of tags to
return - and should default to '20' according to the code.
01/26/2009 03:33:53 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Assigned to Michael Rubinsky
Reply to this comment
I'm not sure I see how the number of tags you have would effect that 
parameter. The only way that you would get an undefined index error on 
'count' would be if the block was not properly configured.   
$_params['count'] is the user-configured maximum number of tags to 
return - and should default to '20' according to the code.
01/26/2009 03:06:44 PM horde (at) smartsector (dot) hu Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Notice: Undefined index: count in /Block/cloud.php
Queue ⇒ Ansel
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Jsut a small notice:

Notice: Undefined index: count in 
/usr/share/horde3/ansel/lib/Block/cloud.php on line 45



it happen only if we do not have any single tag.



version:

  * $Horde: ansel/lib/Block/cloud.php,v 1.15 2009-01-06 17:48:52 jan Exp $



I made a patch for this.



old one:

         $tags = Ansel_Tags::listTagInfo(null, $this->_params['count']);



new:

         $tags=array();

         if (!empty($this->_params['count']))

           $tags = Ansel_Tags::listTagInfo(null, $this->_params['count']);




Saved Queries