fixed warnings by deleting deprecated operator in reader.php and by adding isset for  array