diff --git a/libraries.module b/libraries.module
index 9abbcad..192a052 100644
--- a/libraries.module
+++ b/libraries.module
@@ -21,7 +21,7 @@ function libraries_flush_caches() {
  *   Whether to prefix the resulting path with base_path().
  *
  * @return
- *   The path to the specified library.
+ *   The path to the specified library or FALSE if the library wasn't found.
  *
  * @ingroup libraries
  */
@@ -34,9 +34,7 @@ function libraries_get_path($name, $base_path = FALSE) {
 
   $path = ($base_path ? base_path() : '');
   if (!isset($libraries[$name])) {
-    // Most often, external libraries can be shared across multiple sites, so
-    // we return sites/all/libraries as the default path.
-    $path .= 'sites/all/libraries/' . $name;
+    return FALSE;
   }
   else {
     $path .= $libraries[$name];
@@ -323,7 +321,7 @@ function libraries_detect($name) {
   if (!isset($library['library path'])) {
     $library['library path'] = libraries_get_path($library['machine name']);
   }
-  if (!file_exists($library['library path'])) {
+  if ($library['library path'] === FALSE || !file_exists($library['library path'])) {
     $library['error'] = 'not found';
     $library['error message'] = t('The %library library could not be found.', array(
       '%library' => $library['name'],
diff --git a/tests/libraries.test b/tests/libraries.test
index ada68b9..b9521ef 100644
--- a/tests/libraries.test
+++ b/tests/libraries.test
@@ -29,6 +29,9 @@ class LibrariesTestCase extends DrupalWebTestCase {
    * @todo Better method name(s); split into detection/loading/overloading/etc.
    */
   function testLibraries() {
+    // Test libraries_get_path().
+    $this->assertEqual(libraries_get_path('example'), FALSE, 'libraries_get_path() returns FALSE for a missing library.');
+
     // Test that library information is found correctly.
     $expected = array_merge(libraries_info('example_empty'), array(
       'machine name' => 'example_files',
