There is some incorrect formatting in drupal_set_message at the end of the implementation of hook_init().
There is a syntax error in the code.
Also, for performance reasons, move the code to another hook, as hook_init is called on every page.

Comments

  • Jan van Diepen committed 3ccd08b on 7.x-1.x
    Fixed issue #2313007 Division by zero error and moved the code into...

  • Jan van Diepen committed 3ccd08b on 7.x-1.x-dev
    Fixed issue #2313007 Division by zero error and moved the code into...

  • Jan van Diepen committed 3ccd08b on 7.x-1.x-replace1
    Fixed issue #2313007 Division by zero error and moved the code into...

  • Jan van Diepen committed 3ccd08b on 7.x-1.x-replace
    Fixed issue #2313007 Division by zero error and moved the code into...

  • Jan van Diepen committed 3ccd08b on master
    Fixed issue #2313007 Division by zero error and moved the code into...

  • Jan van Diepen committed 3ccd08b on 7.x-1.x-replace
    Fixed issue #2313007 Division by zero error and moved the code into...

  • Jan van Diepen committed 3ccd08b on 7.x-1.x-replace
    Fixed issue #2313007 Division by zero error and moved the code into...

  • Jan van Diepen committed 3ccd08b on 7.x-1.x-tests
    Fixed issue #2313007 Division by zero error and moved the code into...