1
0
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:
ljyf5593
2017-08-17 15:09:07 +08:00
committed by Barry vd. Heuvel
parent 3e3dad6f9a
commit 9e79da3d29

View File

@@ -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();