mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-26 03:01:23 +02:00
fixed in ajax mode the pdo collector maybe empty (#349)
if the pdo collector is empty, the script will be throw error
This commit is contained in:
committed by
Barry vd. Heuvel
parent
3e3dad6f9a
commit
9e79da3d29
@@ -87,6 +87,10 @@
|
||||
this.$list.$el.appendTo(this.$el);
|
||||
|
||||
this.bindAttr('data', function(data) {
|
||||
// the PDO collector maybe is empty
|
||||
if (data.length <= 0) {
|
||||
return false;
|
||||
}
|
||||
this.$list.set('data', data.statements);
|
||||
this.$status.empty();
|
||||
|
||||
|
Reference in New Issue
Block a user