SANTA ANA (CBS/AP) — A man whose German shepherd chewed off most of its own leg after being tied up outside for a week will have an abuse charge dropped if he completes a mandated course on animal care.

Twenty-three-year-old Samer Samir Ibrahim appeared in an Orange County court on Thursday, but did not enter a plea.

READ MORE: Officer-Involved Shooting With Azusa Police Ends In Short Pursuit, Crash

District attorney’s spokeswoman Roxy Fyad says the animal abuse charge will be dismissed if the program is completed by May 27. Ibrahim will pay for the course.

Authorities said the 11-month-old dog named Rocky was poorly fed while tethered for days.

Prosecutors say the dog’s leg became tangled, cutting off blood flow. Rocky chewed off about 5 inches of his leg to get free.

READ MORE: Scherzer Scratched As Starter For NLCS Game 6

Ibrahim waited a day to take the dog to a veterinary facility, and instead initially treated the severe wound with antiseptic wipes and by covering it with a sock, prosecutors said.

Veterinarians later amputated the rest. The dog recovered and was adopted.

Ibrahim’s arraignment was rescheduled for May 27.

MORE NEWS: 19 Lakers, 5 Clippers Named To NBA's 75th Anniversary Team

(TM and © Copyright 2015 CBS Local Media, a division of CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)