This is really weird. I added a new parameter to my function to allow customizable indentation strings, and it broke it. :\
Here's the original function declaration:
function displayTree($parentID, $level, $tableName) {
...
}
Which works when I call it like so:
displayTree('', 0, 'pages');
Now, I updated the function to this:
function displayTree($parentID, $level, $tableName, $indentStr) {
...
}
and call it like this:
displayTree('', 0, 'pages', ' -- ');
And now it spits out an error:
Warning: Missing argument 4 for displaytree() in /path/ on line 86
I've tried re-ordering the parameters, changing the inputs, using double-quotes instead of single-quotes, and I just don't know what's doing it. Any ideas?