[pLog-svn] resource addition.
Jon Daley
plogworld at jon.limedaley.com
Sun May 14 09:45:53 GMT 2006
On Sun, 14 May 2006, ma'moon wrote:
> and about the the error in
> (*/class/summary/action/summarydefaultaction.class.php) at line *79*, when
> the system first run, i mean directly after the installation process, at
> that line its going to pick a random Blog, but at that moment there would be
> no blogs at all except the BlogMaster's blog "if i am not wrong !!!" so why
> to pick a "random" blog at the moment that we only have "one" blog activated
> in the whole system,
Correct. But, as long as there is one, it is okay to pick a
random blog from that list. ie. I am thinking of a number between 1 and
1, what number do you guess I am thinking of? 1! good guess. You can
argue if that is the most efficient way to do it, and I think the code is
a bit strange myself, but I haven't looked at it for more than a minute or
two, so that might be the best way to do whatever it is trying to do.
> also at that line and according to the PHP manual array_pop(),
> *array_pop()* pops and returns the last value of the array, shortening
> the array by one element. If array is empty (or is not an array), *NULL*
> will be returned !!! and that might be the reason behind having this
> error " if i am not wrong !!! ".
True - if there aren't any active blogs, you would get an error
there. I think it would be a different error than the one you got though.
More information about the pLog-svn
mailing list