fixed Warning array_pop() expects notice in dblog