adrianbj / TracyDebugger

The ultimate debugging and development tool for ProcessWire
https://adrianbj.github.io/TracyDebugger/
GNU General Public License v2.0
87 stars 13 forks source link

Error: Undefined array key 0 on line: 70 in TD.php #85

Closed matjazpotocnik closed 1 year ago

matjazpotocnik commented 1 year ago

$selector is a string, $options is an empty array. Calling bd($selector, $options); yields an error. I know that the second paramater should be a string, it's my mistake...

adrianbj commented 1 year ago

Thanks @matjazpotocnik - fixed in the latest version.

Do note though that the second argument can be array of options. Even though I don't document it properly, if it's an array, it assumes there is no title second param and you want to use some of the options as the second argument instead.