Title: PHP Notices
Last modified: June 10, 2017

---

# PHP Notices

 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [9 years ago](https://wordpress.org/support/topic/php-notices-77/)
 * I know PHP notices aren’t a big deal, but I like to eradicate them if possible.
   Currently, I see the following if I trash an invoice and then go the list of 
   trashed invoices in the WP back-end:
 *     ```
       Notice: Undefined index: trash in ~/wp-content/plugins/littlebot-invoices/includes/class-lbi-columns.php on line 49
       ```
   
 * I get an analogous notice when looking at trashed estimates, but this time referring
   to line 51.
 * What seems to solve this — although I recognize that your superior expertise 
   may find a better solution — is to replace the following lines in `class-lbi-
   columns.php`:
 *     ```
       if ( $current_screen->post_type == 'lb_invoice' ) {
           echo LBI()->invoice_statuses[$status_slug]['label'];
       } else {
           echo LBI()->estimate_statuses[$status_slug]['label'];
       }
       ```
   
 * with this:
 *     ```
       echo $status_slug;
       ```
   
    -  This topic was modified 9 years ago by [KTS915](https://wordpress.org/support/users/kts915/).

The topic ‘PHP Notices’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/littlebot-invoices_59453f.svg)
 * [LittleBot Invoices](https://wordpress.org/plugins/littlebot-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/littlebot-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/littlebot-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/littlebot-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/littlebot-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/littlebot-invoices/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [KTS915](https://wordpress.org/support/users/kts915/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/php-notices-77/)
 * Status: not resolved