Index: includes/bootstrap.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
retrieving revision 1.230
diff -u -p -r1.230 bootstrap.inc
--- includes/bootstrap.inc	6 Oct 2008 22:40:20 -0000	1.230
+++ includes/bootstrap.inc	11 Oct 2008 04:35:03 -0000
@@ -823,9 +823,11 @@ function watchdog($type, $message, $vari
       'timestamp'   => REQUEST_TIME,
     );
 
-    // Call the logging hooks to log/process the message
-    foreach (module_implements('watchdog', TRUE) as $module) {
-      module_invoke($module, 'watchdog', $log_message);
+    if (drupal_function_exists('module_implements')) {
+      // Call the logging hooks to log/process the message
+      foreach (module_implements('watchdog', TRUE) as $module) {
+        module_invoke($module, 'watchdog', $log_message);
+      }
     }
   }
   $in_error_state = FALSE;
