Commit 6cc1c477 authored by drumm's avatar drumm Committed by Neil Drumm

Handle initial state

parent 32aa550d
......@@ -151,6 +151,9 @@ function hosting_nodeapi(&$node, $op, $arg1, $arg2) {
switch ($op) {
case 'load':
$return = db_fetch_array(db_query("SELECT name AS hosting_name FROM {hosting_context} WHERE nid = %d", $node->nid));
if ($return === FALSE) { // Should only happen on install
$return = array();
case 'delete':
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment